stuart at stuartbishop.net
Thu Aug 27 18:27:26 CEST 2015
On 27 August 2015 at 22:00, Alexander Belopolsky
<alexander.belopolsky at gmail.com> wrote:
> I have no idea where you get tzlocal from, but I can assure you that there
> is no such thing in the standard library.
Consider tzlocal as part of pytz. It is Lennart's work, designed to
work with pytz and would have been part of it except I felt it better
to keep the scope narrowly defined. tzlocal.get_localzone() will load
the correct dst aware local IANA zoneinfo file wherever it is defined
on the platform, and I believe also gets you a working local dst aware
tzinfo on Windows.
Stuart Bishop <stuart at stuartbishop.net>
More information about the Datetime-SIG