comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Getting the 3 letter time zone abbreviation
Date: Wed, 29 Apr 2020 11:09:37 +0200
Date: 2020-04-29T11:09:37+02:00	[thread overview]
Message-ID: <r8bg8g$h6f$1@gioia.aioe.org> (raw)
In-Reply-To: 4f7d162e-356c-4cc4-abc3-f4cfe195b9cd@googlegroups.com

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.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2020-04-29  9:09 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 [this message]
2020-04-29 19:20   ` Bob Goddard
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