+ 17
Why my time program is not showing the current time?
import datetime def time(): now = datetime.datetime.now() Time = now.strftime('%H hr:%M min:%S sec') return'Current time:' + Time print(time()) #thanks!
2 odpowiedzi
+ 11
I just executed... right now!
output says》
current time:
14 hrs:14 min:01sec
+ 3
Actually it is working when I executed it