datetime fromtimestamp() methods don't work on Windows with dates before 1970-01-01
Closed this issue · 1 comments
mhearne-usgs commented
Describe the bug
datetime fromtimestamp() methods don't work on Windows with dates before 1970-01-01
To Reproduce
Expected behavior
datetime.utcfromtimestamp(-1) => datetime.datetime(1969, 12, 31, 23, 59, 59)
Additional context
Workaround: datetime(1970,1,1) + timedelta(seconds=-1)
mhearne-usgs commented
Fixed with PR #186