How to get the epoch timestamp in Python?

In Python, how to get the epoch timestamp, the number of seconds passed since the epoch?

In Python:

You can get the epoch time by calling time.time():

import time

print time.time()
Answered by dtivl.

Leave a Reply

Your email address will not be published. Required fields are marked *