How can I get a human-readable timezone name in Python?

前端 未结 7 1400
旧时难觅i
旧时难觅i 2020-12-10 12:06

In a Python project I\'m working on, I\'d like to be able to get a \"human-readable\" timezone name of the form America/New_York, corresponding to the syste

相关标签:
7条回答
  • 2020-12-10 13:13

    http://pytz.sourceforge.net/ may be of help. If nothing else, you may be able to grab a list of all of the timezones and then iterate through until you find one that matches your offset.

    0 讨论(0)
提交回复
热议问题