demo_datetime1.py:
import datetime x = datetime.datetime.now() print(x)
C:\Users\My Name>python demo_datetime1.py