For some reason when constructing datetimes using fromtimestamp, I get a \"OSError [Errno22] Invalid Argument\" when I use negative times less than -43200 (-12hrs). I am on
To solve this problem, divide the timestamp value by 1000.
In Windows, the timestamp number is multiplied by a factor of a 1000.