>>> import time >>> time.asctime(time.localtime(0x7fffffff)) 'Tue Jan 19 12:14:07 2038' >>> time.asctime(time.localtime(0x80000000)) Traceback (most recent call last):
File "", line 1, in ValueError: timestamp out of range for platform time_t
> Python 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit (Intel)] on win32 > Type "copyright", "credits" or "license()" for more information. > >>> import time > >>> time.asctime(time.localtime(0x7fffffff)) > 'Tue Jan 19 12:14:07 2038' > >>> time.asctime(time.localtime(0x80000000)) > 'Tue Jan 19 12:14:08 2038' > >>>
そんな (スコア:2, すばらしい洞察)
Re: (スコア:5, すばらしい洞察)
ご心配なく
(7FFFFFFF)16
の時に本当のお祭りが始まります
それこそ (1234567890)10 がお遊びに思えるくらいの
Re: (スコア:1)
とりあえず、今の自分のマシンでお祭りを試してみる。
>>> import time
>>> time.asctime(time.localtime(0x7fffffff))
'Tue Jan 19 12:14:07 2038'
>>> time.asctime(time.localtime(0x80000000))
Traceback (most recent call last):
File "", line 1, in
ValueError: timestamp out of range for platform time_t
自分自身は生きていない予定ではあるが。
Re:そんな (スコア:2)
すごく遅いレスだけど、Python 3.1.1で追試してみたら、もう、お祭り騒ぎは終わってたみたい。
> Python 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit (Intel)] on win32
> Type "copyright", "credits" or "license()" for more information.
> >>> import time
> >>> time.asctime(time.localtime(0x7fffffff))
> 'Tue Jan 19 12:14:07 2038'
> >>> time.asctime(time.localtime(0x80000000))
> 'Tue Jan 19 12:14:08 2038'
> >>>