Alexander Belopolsky <[email protected]> writes:

> On Thu, Sep 24, 2015 at 2:42 PM, Random832 <[email protected]> wrote:
>
>> I still don't see the logic in doing any of this rather than parsing
>> zoneinfo files directly on systems that use it;
>>
>
> There is no portable way to even discover the location of the zoneinfo
> files.  (The default location when installing from the source is the
> incredible /usr/local/etc/zoneinfo! )  If some location is guessed by
> searching some likely candidates, there is no guarantee that this is what
> system tzset() is using.

tzlocal module by Lennart Regebro might be good enough in practice
  https://github.com/regebro/tzlocal
_______________________________________________
Datetime-SIG mailing list
[email protected]
https://mail.python.org/mailman/listinfo/datetime-sig
The PSF Code of Conduct applies to this mailing list: 
https://www.python.org/psf/codeofconduct/

Reply via email to