+ 3

how to use date in python

date in python

17th Oct 2018, 5:03 PM
Mik
Mik - avatar
8 Antworten
+ 6
thk you guy
8th Nov 2018, 10:13 PM
Mik
Mik - avatar
+ 4
from datetime import datetime print(datetime.now()) I think this is how. Could be a little different.
17th Oct 2018, 5:48 PM
Rugved Modak
Rugved Modak - avatar
+ 4
You can also use (for example) asctime or localtime from time module. But writing the code do it yourself you must! ;-)
17th Oct 2018, 8:49 PM
HonFu
HonFu - avatar
+ 4
this code doesn't run plz help import data: print(datetime.now())
18th Oct 2018, 5:55 AM
Mik
Mik - avatar
+ 4
how is the syntax Rugved Modak
7th Nov 2018, 11:36 PM
Mik
Mik - avatar
+ 3
Rugved Modak thks can you write for me the code
17th Oct 2018, 6:16 PM
Mik
Mik - avatar
+ 2
import datetime print(datetime.now()) cur_dt = datetime.now()
8th Nov 2018, 6:21 AM
Rugved Modak
Rugved Modak - avatar
+ 1
Dude, just Google about datetime and time modules.
18th Oct 2018, 4:12 AM
Rugved Modak
Rugved Modak - avatar