Article View: gnu.emacs.help
Article #2095What timezone am I in?
From: Mike Patton
Date: Thu, 07 Jan 1993 13:23
Date: Thu, 07 Jan 1993 13:23
23 lines
1687 bytes
1687 bytes
I need some way in a piece of Emacs Lisp I'm writing to determine details of the date and time... The only thing I've found so far is the function (current-time-string), which contains all the info that I need _except_ the timezone. I can use either the abbreviation or (better) the GMT offset, or (best) both. Does anyone know a way to determine this from Emacs Lisp. -Mike Patton P.S. A side comment, I use (current-time-string) and extract substrings from specific character positions. The documentation for (current-time-string) doesn't seem to promise that the format won't change in future releases (I expect it won't, but if it does, the code breaks and doesn't realize it). Is there a better function for this part as well? Ideally the whole thing might best be done with a function that returns a list or vector whose elements match those of a struct tm in C. P.P.S. I'd prefer to use functions from the base release and NOT to have the code depend on other packages, unless a really small piece can be extracted to include with my release, as the code is going to be used by some relatively novice emacs users who won't be up on getting packages from all over the net
Technical Details
Message-ID:
<MAP.93Jan7132329@songlines.BBN.Com>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!usc!news.bbn.com!news.bbn.com!mapShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!usc!news.bbn.com!news.bbn.com!map From: map@BBN.Com (Mike Patton) Newsgroups: gnu.emacs.help Subject: What timezone am I in? Date: 7 Jan 93 13:23:29 Organization: Bolt Beranek and Newman, Cambridge, MA 02138 USA Lines: 23 Distribution: gnu Message-ID: <MAP.93Jan7132329@songlines.BBN.Com> Reply-To: Incoming Replies <MAP=Reply@BBN.Com> NNTP-Posting-Host: songlines.bbn.com