+ 5

How can i print date and time in python. With a in-build module in this app

If this app python compiler have this feature/property plz reply me.

26th Apr 2020, 2:59 PM
Aayush-droid
Aayush-droid - avatar
3 Answers
+ 2
from datetime import datetime print(datetime.now())
26th Apr 2020, 3:10 PM
Abhay
Abhay - avatar
+ 2
You can use builtin datetime module import datetime time = datetime.datetime.now() print(time)
26th Apr 2020, 3:10 PM
Rishi
Rishi - avatar
+ 2
Thanx
26th Apr 2020, 4:05 PM
Aayush-droid
Aayush-droid - avatar