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