From: Bob Goddard <1963bib@googlemail.com>
Subject: Re: Getting the 3 letter time zone abbreviation
Date: Wed, 29 Apr 2020 12:20:13 -0700 (PDT)
Date: 2020-04-29T12:20:13-07:00 [thread overview]
Message-ID: <9dad342a-7981-4d09-a414-7cec651097ac@googlegroups.com> (raw)
In-Reply-To: <r8bg8g$h6f$1@gioia.aioe.org>
On Wednesday, 29 April 2020 10:09:39 UTC+1, Dmitry A. Kazakov wrote:
> On 2020-04-29 10:46, Bob Goddard wrote:
> > I'm sure this has been asked many times...
> >
> > I need to get the 3 letter time zone abbreviation.
>
> 3-4 you mean, e.g. CEST.
>
> > Does anyone have code that can do that?
>
> I had only a partial success. I used GTK/GLib time zone functions. The
> abbreviation of the zone name is the thing. Unfortunately it works
> poorly under Windows, and Windows updates tend to break time zone
> settings [*] I needed to plant various fallback to deduce the zone from
> UTC offset.
>
> Anyway, Ada bindings are here:
>
> http://www.dmitry-kazakov.de/ada/gtkada_contributions.htm#5.14
>
> -----------
> * I believe it was the case why one could not log into Origin account
> for a couple of days not so long ago. Their server verified the time
> zone and blocked access because Windows reported garbage.
Seems easier just to import strftime and call it requesting just "%Z". This is on Linux, but MS suggests it should also work on Windows.
B
next prev parent reply other threads:[~2020-04-29 19:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-29 8:46 Getting the 3 letter time zone abbreviation Bob Goddard
2020-04-29 9:09 ` Dmitry A. Kazakov
2020-04-29 19:20 ` Bob Goddard [this message]
2020-04-29 19:53 ` Dmitry A. Kazakov
2020-04-30 18:59 ` Bob Goddard
2020-04-30 21:11 ` Dmitry A. Kazakov
2020-05-02 12:46 ` Bob Goddard
2020-05-02 15:08 ` Bob Goddard
2020-05-02 15:38 ` Dmitry A. Kazakov
2020-05-02 19:25 ` Bob Goddard
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox