8 ответов
+ 6
thk you guy
+ 4
from datetime import datetime
print(datetime.now())
I think this is how. Could be a little different.
+ 4
You can also use (for example) asctime or localtime from time module.
But writing the code do it yourself you must! ;-)
+ 4
this code doesn't run
plz help
import data:
print(datetime.now())
+ 4
how is the syntax Rugved Modak
+ 3
Rugved Modak thks can you write for me the code
+ 2
import datetime
print(datetime.now())
cur_dt = datetime.now()
+ 1
Dude, just Google about datetime and time modules.