Python’s time module is handy to display current date and time.
import time
# %c – preferred date and time representation
curr_time=time.strftime("%c")
print ("Execution time is %s" % curr_time)
OR
print curr_time
Python’s time module is handy to display current date and time.
import time
# %c – preferred date and time representation
curr_time=time.strftime("%c")
print ("Execution time is %s" % curr_time)
OR
print curr_time