import time # ts stores the time in seconds ts = time.time() # print the current timestamp print(ts)