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 ().
Why does the
.now
in
now = datetime.now()
do?
(I put my reply in multiple lines to make it seperate from my own words but I didn’t want to put in quotes as that would signify a string)
Why does it show the wrong time? The time at my place is 19:56 while the time the editor is showing is 14:25. I live in the IST. Does the editor go according to IST-5:30 ?
What am I doing wrong? My code is
`from datetime import datetime
now = datetime.now()
print ‘%02d-%02d-%04d %02d:%02d:%02d’ % (now.month, now.day, now.year, now.hour, now.minute, now.second)`
It seems right, but it is saying “Your date and time do not seem to be in the right format mm/dd/yyyy hh:mm:ss”
Is there anything I need to fix?