+ 17
Gap between System Time and Python
Why is there a Gap of 2 Hours between the System Time and the Time returned by the time-Module in Python? With daylight saving Time it should be only one Hour. This is independently from the Device I use (Laptop, Raspberry, Smartphone). https://code.sololearn.com/cpk4SIB2fmIB/?ref=app
4 Antworten
+ 7
gmtime returns current time in UTC. Appears to work fine for me.
+ 3
Your code shows the standard time in gst.
Each area has a different time zone.
Eg: India: gst+5:30
Nice work done!!!
+ 3
Fixed wrong Output by using localtime() instead of gmtime(). Works fine in Pydroid. Here on SL I add two hours (7200 Seconds).
+ 1
it is funny. now for me it shows ,25:05 o'clock of yesterday :)