Eryk Sun <eryk...@gmail.com> added the comment:

> I'm not sure of what you mean. The function is implemented:

My comment was limited to Windows, for which time.tzset() has never been 
implemented. Since Python has its own implementation of time.tzname in Windows, 
it should also implement time.tzset() to allow refreshing the value. Actually, 
ucrt implements C _tzset(), so the implementation of time.tzset() in Windows 
also has to call C _tzset() to update _tzname (and also ucrt's new private 
__wide_tzname), in addition to calling GetTimeZoneInformation() to update its 
own time.tzname value. 

Another difference with Python's time.tzname and C strftime("%Z") is that  ucrt 
will use the TZ environment variable, but Python's implementation of 
time.tzname in Windows does not.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue8304>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to