tzdata icon indicating copy to clipboard operation
tzdata copied to clipboard

How to find timezone by abbreviation?

Open hissssst opened this issue 5 months ago • 0 comments

After reading the code of tzdata, I found that ReleaseReader ets tables do contain the zone abbreviations, but Tzdata itself does not provide any functions to fetch timezone information by the abbreviation (or I just couldn't find it).

To give more context. See this issue: https://github.com/bitwalker/timex/issues/745. I needed to parse the time in this format 2024-09-16T14:49:00.12321 PST. And Timex is unable to find the timezone corresponding to PST since Tzdata provides no such API

hissssst avatar Sep 19 '24 21:09 hissssst