Re: [Datetime-SIG] PEP-431/495

Aug. 27, 2015
4:27 p.m.
On 27 August 2015 at 22:00, Alexander Belopolsky <alexander.belopolsky@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@stuartbishop.net> http://www.stuartbishop.net/
3580
Age (days ago)
3580
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stuart Bishop