Hi
Is the following behaviour correct?
Jython 2.0alpha1 on java1.2.2 (JIT: javacomp)
Type "copyright", "credits" or "license" for more information.
>>> from time import *
>>> secs = 977232600L
>>> ctime(secs)
Traceback (innermost last):
File "<console>", line 1, in ?
TypeError: ctime(): 1st arg can't be coerced to double
>>> ctime(float(secs))
'Tue Dec 19 13:30:00 2000'
>>>
In cpython it works without the cast:
Python 1.5.2 (#9, Feb 7 2000, 00:10:53) [GCC 2.95.1 19990816 (release)] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> from time import *
>>> secs = 977232600L
>>> ctime(secs)
'Tue Dec 19 13:30:00 2000'
>>>
cheers
Barry
|