datetime - Errors in using fromtimestamp function in python -


i trying use fromtimestamp function in python convert datetime data seconds. but, error happens in points. 1 example

1478422800 , 1478422740 in seconds date.

although 1478422800 bigger 1478422740 60 seconds, 1478422800 converted (2016, 11, 6, 1, 0), , 1478422740 converted (2016, 11, 6, 1, 59)

do guys have idea that?

i inserted code below


import datetime  datetime.datetime.fromtimestamp(1.47842280e+09)  datetime.datetime.fromtimestamp(1.47842274e+09) 

this sort of correction related daylight saving time, occurred on november 6, 2016 in u.s causing clocks go 1 hour when time reached 2 am. appearing inconsistently on different computers due differing timezone settings.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -