2
对谷歌的AppEngine(http://shell.appspot.com/):是否有一个平台不可知的time.gmtime实现?
>>> time.gmtime(1000*365*24*60*60)
(2969, 5, 3, 0, 0, 0, 2, 123, 0)
MacOSX上:
>>> 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的?
什么版本的Python在Mac OS X上使用? BTW:在Python 3.1.1 Win32上不会抛出异常。 – iamamac 2009-12-29 17:23:02
@_jeremy,你最好描述一下你正在试图解决的问题,而不是要求你解决这个问题的方法。你想用这些数据做什么? – 2009-12-29 18:31:50