ID EN
Time

time

Python 3.11

Return the time in seconds since the epoch as a floating point number. The handling of leap seconds is platform dependent. On Windows and most Unix systems, the leap seconds are not counted towards the time in seconds since the epoch. This is commonly referred to as Unix time.

Syntax

PYTHON
time.time() → float

See Also

epoch epoch time() gmtime() localtime() struct_time time_ns() float