Python fromtimestamp OSError

前端 未结 5 1219
天命终不由人
天命终不由人 2020-12-03 16:36

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

5条回答
  •  无人及你
    2020-12-03 17:36

    To solve this problem, divide the timestamp value by 1000.

    In Windows, the timestamp number is multiplied by a factor of a 1000.

提交回复
热议问题