From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.5toSSCP5H8WhQPVIfFrwuA.user.gioia.aioe.org!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Getting the 3 letter time zone abbreviation Date: Wed, 29 Apr 2020 11:09:37 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <4f7d162e-356c-4cc4-abc3-f4cfe195b9cd@googlegroups.com> NNTP-Posting-Host: 5toSSCP5H8WhQPVIfFrwuA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader01.eternal-september.org comp.lang.ada:58522 Date: 2020-04-29T11:09:37+02:00 List-Id: 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