help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Time zone abbreviation


From: Eli Zaretskii
Subject: Re: Time zone abbreviation
Date: 07 Jan 2004 08:39:23 +0200

> 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?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]