是否有与平台无关的time.gmtime实现?
在 Google App Engine 上(可以访问这个链接:http://shell.appspot.com/):
>>> time.gmtime(1000*365*24*60*60)
(2969, 5, 3, 0, 0, 0, 2, 123, 0)
在 macOS 系统上:
>>> time.gmtime(1000*365*24*60*60)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: timestamp out of range for platform time_t
有没有一种不依赖于特定平台的 time.gmtime 实现?