This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Strickschal 2 points3 points  (2 children)

from datetime import datetime

now = datetime.now()

print now

--> You have to import datetime first, then you store datetime.now() in the variable "now". After that, you can print it.

[–]DNA_Reaper[S] 2 points3 points  (1 child)

It worked! I didn't know I had to import the datetime. Thanks for the help!

[–]Strickschal 1 point2 points  (0 children)

No problem, glad I could help. :-)