OverflowError: mktime argument out of range ???

Michael Bentley michael at jedimindworks.com
Sun Apr 15 06:48:05 EDT 2007


On Apr 15, 2007, at 5:41 AM, Jorgen Bodde wrote:

> This is what I try:
>
>>>> time.mktime((1928, 12,28, 0, 0, 0,  0, 0, 0))
> Traceback (most recent call last):
>   File "<interactive input>", line 1, in <module>
> OverflowError: mktime argument out of range

Probably depends on your system.  It doesn't break for me:

 >>> import time
 >>> time.mktime((1928, 12,28, 0, 0, 0,  0, 0, 0))
-1294164000.0


---
Simplicity is the ultimate sophistication.
                                                   -Leonardo da Vinci






More information about the Python-list mailing list