What is Nostr?
Glyph /
npub1h5u…y2g4
2023-08-25 16:41:25

Glyph on Nostr: Is it possible to get a zoneinfo.ZoneInfo key (i.e.: IANA tzdb identifier) for the ...

Is it possible to get a zoneinfo.ZoneInfo key (i.e.: IANA tzdb identifier) for the current system timezone, in Python? `datetime.now(timezone.utc).astimezone().` gives a potentially ambiguous 'tzname' and 'utcoffset' which make it difficult to communicate long-term time intervals to other systems

#python #datetime #timezones
Author Public Key
npub1h5u94g9409m9c6yrckcwk9lg4c6sexyvvk23p0s7s3f42lhrs7zq75y2g4