all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Time zone abbreviation
@ 2004-01-07  3:28 George Georgiou
  2004-01-07  6:39 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: George Georgiou @ 2004-01-07  3:28 UTC (permalink / raw)


On my unix machine Emacs 21.2 evaluates this

(format-time-string "%Z")

to "PST"

whereas on emacsnt 21.3 on Windows XP is evaluated to
"Pacific Standard Time".

How can make "Pacific Standard Time" "PST"?

Thanks.




__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Time zone abbreviation
  2004-01-07  3:28 Time zone abbreviation George Georgiou
@ 2004-01-07  6:39 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2004-01-07  6:39 UTC (permalink / raw)


> Date: Tue, 6 Jan 2004 19:28:06 -0800 (PST)
> From: George Georgiou <geortal@yahoo.com>
> Newsgroups: gnu.emacs.help
> 
> On my unix machine Emacs 21.2 evaluates this
> 
> (format-time-string "%Z")
> 
> to "PST"
> 
> whereas on emacsnt 21.3 on Windows XP is evaluated to
> "Pacific Standard Time".
> 
> How can make "Pacific Standard Time" "PST"?

I'm guessing that the string comes from the system library, so you
cannot change it.  (The C standard says that %Z produces the time-zone
name or its abbreviation, so the M$ runtime seems to comply here.)
You could, of course, make an alist that maps one into the other.

Why do you need "PST", anyway?  Isn't the numerical offset value
(produced by %z) better?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-07  6:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-07  3:28 Time zone abbreviation George Georgiou
2004-01-07  6:39 ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.