[issue29097] datetime.fromtimestamp(t) when 0 <= t <= 86399 fails on Python 3.6
Ammar Askar
report at bugs.python.org
Sat Jun 24 04:38:09 EDT 2017
Ammar Askar added the comment:
Hey, sorry for the late response. I just ran:
import datetime
from dateutil.zoneinfo import get_zonefile_instance
import dateutil.tz
zonenames = list(get_zonefile_instance().zones)
for tz in zonenames:
tz = dateutil.tz.gettz(tz)
for i in range(86400):
if datetime.datetime.fromtimestamp(i, tz).fold == 1:
print(str(tz))
tz uses your OS's zone info so also posting my distro version:
Debian 8.8 - 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux
And I got the same result, no timezone with folds in these range.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29097>
_______________________________________
More information about the Python-bugs-list
mailing list