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