In Python, how to get the epoch time (the number of seconds since epoch)?
In Python, you can get the epoch time by calling time.time()
:
在Python中,您可以通过调用time.time()
获得纪元时间:
import timeprint time.time()
Reference: https://www.systutorials.com/dtivl/16/how-to-get-the-epoch-timestamp#answer-18
参考: https : //www.systutorials.com/dtivl/16/how-to-get-the-epoch-timestamp#answer-18
Answered by zma.
由zma回答。
翻译自: https://www.systutorials.com/how-to-get-the-epoch-in-python/