Datetime display


here’s the code that I made in Pretty Time lesson 5/6:

from datetime import datetime
now =

print '%s:%s:%s' % (now.hour, now.minute, now.second)

Is displayed “23:52:51” which means it’s 11:52 pm
However, the time in my clock is 7:57 AM. Is this because of timezones?


yes, the time is standard utc0, which is i London.

if you want your timezone, you have to activate it: