unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@elta.co.il>
Subject: Re: Time zone abbreviation
Date: 07 Jan 2004 08:39:23 +0200	[thread overview]
Message-ID: <u4qv8b6uc.fsf@elta.co.il> (raw)
In-Reply-To: <20040107032806.26924.qmail@web61101.mail.yahoo.com> (message from George Georgiou on Tue, 6 Jan 2004 19:28:06 -0800 (PST))

> 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	other threads:[~2004-01-07  6:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-07  3:28 Time zone abbreviation George Georgiou
2004-01-07  6:39 ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=u4qv8b6uc.fsf@elta.co.il \
    --to=eliz@elta.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).