Web Analytics

Python time.time() Method

Date & Time Timestamp

The time() method returns the time as a floating point number expressed in seconds since the epoch, in UTC.

Syntax

time.time()

Parameters

No parameters.

Return Value

A float, representing the seconds since the epoch.

Example

Using the time() method:

Output
Click Run to execute your code

Related Functions