Is Python's time.time() timezone specific?

后端 未结 6 1416
孤街浪徒
孤街浪徒 2021-02-05 00:42

Apologies for asking too basic question but I couldn\'t get it cleared after reading docs. It just seems that I am missing or have misunderstood something too basic here.

<
6条回答
  •  天命终不由人
    2021-02-05 01:23

    time.time() returns the number of seconds since the UNIX epoch began at 0:00 UTC, Jan 1, 1970. Assuming the machines have their clocks set correctly, it returns the same value on every machine.

提交回复
热议问题