all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: bug-gnu-emacs@gnu.org
Subject: Re: bug#641: format-time-string %Z does not work, starting with Emacs 22.2
Date: Thu, 07 Aug 2008 08:20:46 -0500	[thread overview]
Message-ID: <86fxphgdw1.fsf@lifelogs.com> (raw)
In-Reply-To: mailman.15962.1218059257.18990.bug-gnu-emacs@gnu.org

On Wed, 6 Aug 2008 23:35:16 +0200 "Juanma Barranquero" <lekktu@gmail.com> wrote: 

JB> On Wed, Aug 6, 2008 at 21:53, Ted Zlatanov <tzz@lifelogs.com> wrote:
>> Does this help?  The Microsoft documentation linked by this article
>> implies that GetTimeZoneInformation() will DTRT.
>> 
>> http://www.chronos-st.org/Discovering%20the%20Local%20Time%20Zone--Why%20It%27s%20a%20Hard%20Problem.html

JB> It does return the "Microsoft timezone name", not Posix. In my system,
JB> it currently returns "Hora de verano romance".

On Thu, 07 Aug 2008 00:20:36 +0300 Eli Zaretskii <eliz@gnu.org> wrote: 

EZ> But this is a different problem.  The problem I wanted to solve is to
EZ> get something like JST+2JDT instead of "Jerusalem Daylight Time".  And
EZ> that cannot be solved by using Windows API, AFAIK, because the latter
EZ> is what Windows stores as the TZ name in its database.  In particular,
EZ> a test program that prints the TZ name returned by
EZ> GetTimeZoneInformation is the same "Jerusalem Daylight Time" that we
EZ> find in `tzname'.  I don't think RFC-822 compliant TZ names such as
EZ> EST-5EDT can be found anywhere in the Windows APIs and libraries, but
EZ> I'd be glad to be proven wrong.

We could build a database of known Microsoft timezones and map them to
ISO timezones.  It has to be done just once and then updated very
rarely--timezone names don't change often.  The full list of timezones
is in 

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones 

according to the article, so it may be possible to build the full list
of keys on a single machine and then fill it in with the mappings.

Ted


  parent reply	other threads:[~2008-08-07 13:20 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-04 21:24 bug#641: format-time-string %Z does not work, starting with Emacs 22.2 martin rudalics
2008-08-04 22:07 ` Drew Adams
2008-08-05  6:28   ` martin rudalics
2008-08-05 18:34   ` Eli Zaretskii
2008-08-05 23:54     ` Drew Adams
2008-08-06  3:22       ` Eli Zaretskii
2008-08-06  5:40         ` Drew Adams
2008-08-06 18:53           ` Eli Zaretskii
2008-08-06 19:48             ` Drew Adams
2008-08-06 20:34               ` Juanma Barranquero
2008-08-06 23:05                 ` Drew Adams
2008-08-07  3:16                   ` Juanma Barranquero
     [not found]           ` <mailman.15951.1218049658.18990.bug-gnu-emacs@gnu.org>
2008-08-06 19:53             ` Ted Zlatanov
2008-08-06 21:20               ` Eli Zaretskii
2008-08-06 21:35               ` Juanma Barranquero
     [not found]               ` <mailman.15962.1218059257.18990.bug-gnu-emacs@gnu.org>
2008-08-07 13:20                 ` Ted Zlatanov [this message]
2008-08-07 18:20                   ` Eli Zaretskii
2008-08-07 18:51                     ` Lennart Borgman (gmail)
2008-08-07 18:59                       ` Eli Zaretskii
2008-08-07 20:14                         ` Lennart Borgman (gmail)
2008-08-07 20:29                           ` Eli Zaretskii
2008-08-07 20:36                             ` Lennart Borgman (gmail)
2008-08-07 20:58                               ` Juanma Barranquero
2008-08-07 21:04                                 ` Lennart Borgman (gmail)
2008-08-07 21:13                                   ` Juanma Barranquero
2008-08-07 21:31                                     ` Lennart Borgman (gmail)
2008-08-08  7:10                                       ` Eli Zaretskii
     [not found]                                       ` <mailman.16075.1218180793.18990.bug-gnu-emacs@gnu.org>
2008-08-08 15:04                                         ` Ted Zlatanov
2008-08-08 15:57                                           ` Drew Adams
2008-08-08 17:22                                             ` Eli Zaretskii
2008-08-08 17:27                                               ` Drew Adams
2008-08-09  1:00                                                 ` OFFICE ZERO
2008-08-09 14:13                                                 ` OFFICE ZERO
2008-08-08 18:46                                               ` Stefan Monnier
2008-08-09  0:59                                               ` OFFICE ZERO
2008-08-08 18:47                                             ` Andreas Schwab
2008-08-09  1:01                                               ` OFFICE ZERO
2008-08-09 14:13                                               ` OFFICE ZERO
2008-08-09  1:01                                             ` OFFICE ZERO
2008-08-08 17:16                                           ` Eli Zaretskii
2008-08-09 14:12                                             ` OFFICE ZERO
2008-08-08  7:21                                   ` Eli Zaretskii
2008-08-07 21:47                                 ` Drew Adams
2008-08-07 21:20                         ` martin rudalics
2008-08-08  7:17                           ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2008-08-01 16:45 Drew Adams

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

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

  git send-email \
    --in-reply-to=86fxphgdw1.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=bug-gnu-emacs@gnu.org \
    /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.
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.