time today in python code example
Example 1: python print datetime
import datetime
print("Now:", datetime.datetime.now())
Example 2: use datetime python to get runtime
from datetime import datetime
start = datetime.now()
# code ...
print(datetime.now()-start)