Author eryksun
Recipients AndiDog_old, belopolsky, eric.smith, eryksun, ezio.melotti, paul.moore, shimizukawa, steve.dower, terry.reedy, tim.golden, vstinner, zach.ware
Date 2021-03-08.19:17:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> 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.
Date User Action Args
2021-03-08 19:17:29eryksunsetrecipients: + eryksun, terry.reedy, paul.moore, belopolsky, vstinner, eric.smith, tim.golden, ezio.melotti, AndiDog_old, shimizukawa, zach.ware, steve.dower
2021-03-08 19:17:29eryksunsetmessageid: <>
2021-03-08 19:17:29eryksunlinkissue8304 messages
2021-03-08 19:17:29eryksuncreate