How to get the epoch in Python?

In Python, how to get the epoch time (the number of seconds since epoch)?

asked Mar 17, 2017 by anonymous

1 Answer

In Python, you can get the epoch time by calling time.time():

import time

print time.time()


answered Apr 20, 2017 by zma (380 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost