+ 5
Is the time here in Greenwich?
from datetime import datetime print(datetime.today()) My code here to check it out: https://code.sololearn.com/ctj14RQ8U5Ys/?ref=app Thank you for your help😊💕✨💗
6 Respuestas
+ 3
Instead of parsing the time manually, you can just use datetime.today().hour <= this tells me that it's 21:40 (9:40 PM), your code says 22:40 but it's really 23:40 CEST, so I think it's Greenwich - 1 hour (UTC)
+ 3
When I made it offline it is working correctly,but after I have posted it everyone say same time then I said maybe in Greenwich I search in Google I saw the time in my code same time in Greenwich so I asked to make it sure
+ 2
I need answer
https://www.sololearn.com/discuss/1810804/?ref=app
+ 2
here's a one line solution
print(time.asctime(time.localtime(time.time())))
+ 1
Tahir Iqbal send it again