here’s the code that I made in Pretty Time lesson 5/6:
from datetime import datetime
now = 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?