I have epoch time like this 1488445200000
and I need to convert it to datetime variable. I tried
from datetime import datetime
dt = datetime.fromtimestamp(1488445200000 // 3600)
dt
I got
datetime.datetime(1983, 2, 7, 10, 10)
but the result does not seem to be right (the right one should be March 2, 2017 10:00:00 AM GMT+01:00)... what shall I do?
And what if what is I need to do is not just for one value 1488445200000 but for a column in a dataframe. Do I have to loop? Or is there a matrix operation?