using import time code example Example: time module in python import time seconds = time.time() print("Seconds since epoch =", seconds)