The following are links to additional questions that our community has asked about this exercise:
This list will contain other frequently asked questions that aren’t quite as popular as the ones above.
Currently there have not been enough questions asked and answered about this exercise to populate this FAQ section.
This FAQ is built and maintained by you, the Codecademy community – help yourself and other learners like you by contributing!
Not seeing your question? It may still have been asked before – try searching for it by clicking the spyglass icon () in the top-right of this page. Still can’t find it? Ask it below by hitting the reply button below this post ().
Time zones are not implemented in any simple fashion in the datetime module. If your application needs time zones, you probably need to use the pytz module. The situation is a bit better (but still pretty opaque) in Python3.
# Python 3.2+ ONLY:
import datetime
min5 = datetime.timezone(datetime.timedelta(hours=-5))
d = datetime.datetime.now(min5)
print(d)
# convert to the current system timezone
d_system = d.astimezone()
print(d_system.tzinfo)
print(d_system)