chrono-tz icon indicating copy to clipboard operation
chrono-tz copied to clipboard

Abbreviated time zones

Open NilsIrl opened this issue 4 years ago • 2 comments

Support abbreviated time zones. e.g. BST, IST

NilsIrl avatar May 07 '20 15:05 NilsIrl

This isn't possible without an unambiguous mapping.

workingjubilee avatar May 07 '20 16:05 workingjubilee

Partially related to some of the use cases expressed in #54 , I think?

It won't be possible to construct a timezone from an abbreviated tz, but it should be possible to get the abbreviated name from a fully specified FixedTimespan

quodlibetor avatar Jul 11 '20 21:07 quodlibetor

So creating a timezone from just an abbreviation is impossible, as mentioned before. Getting the abbreviation from a TzOffset is possible with the OffsetName trait.

pitdicker avatar Apr 05 '24 14:04 pitdicker