OverflowError: mktime argument out of range ???
John Machin
sjmachin at lexicon.net
Sun Apr 15 08:36:48 EDT 2007
On Apr 15, 8:48 pm, Michael Bentley <mich... at jedimindworks.com> wrote:
> 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.
Maybe it does. It sure would be nice to get a definite answer. Pity
nobody documented the time module. Oh yeah, and the secret closed-shop
source code -- damnation! Anyone got a bootleg pirate copy of
timemodule.c lying around anywhere?
> It doesn't break for me:
Please consider the possibility that it didn't break for the OP
either.
>
> >>> 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