tzdata
tzdata copied to clipboard
How to find timezone by abbreviation?
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