import time time.time() # In The OutPut It will show no of secs. For EXAMPLE:- Mine is 1668486863.7566664 print(time.ctime(1668486863.7566664)) # Then the Date and Time will seen in Output:- Tue Nov 15 10:04:23 2022