loading
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import dateutil.parser
import datetime


## The following code produces 
## datetime.datetime(2018, 7, 11, 15, 33, 32, 311000)
## on linux
## but it produces 
## datetime.datetime(2018, 7, 11, 17, 33, 32, 311000)
## on mac

print(
  datetime.datetime.utcfromtimestamp(1531323212311 / 1000)
)


##
## On Mac
## Python 3.6.1 |Continuum Analytics, Inc.| (default, May 11 2017, 13:04:09)
## Type 'copyright', 'credits' or 'license' for more information
## IPython 7.2.0 -- An enhanced Interactive Python. Type '?' for help.

## In [1]: print(
##  datetime.datetime.fromtimestamp(1531323212311 / 1000)
## )