DragonFly users List (threaded) for 2008-09
DragonFly BSD
DragonFly users List (threaded) for 2008-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: python mktime fails with overflow (same call works in other environments)


From: YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx>
Date: Thu, 25 Sep 2008 08:09:51 +0900

On Wed, Sep 24, 2008 at 01:53:58PM -0500, Aran Cox wrote:
> mktime is failing in python2.4 and python2.5 under DragonflyBSD 2.0
> for certain date/times:
> 
> >>> from time import mktime
> >>> tt=(2006, 4, 2, 2, 16, 27, -1, -1, -1)
> >>> mktime(tt)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> OverflowError: mktime argument out of range
> 
> When I run the above python snippet on any other system I have access
> to (Fedora 9, OpenBSD 4.1, etc.) I get:
> 
> >>> mktime(tt)
> 1143944187.0

It works as expected(1143944187.0) here with python2.5 built from pkgsrc,
on DragonFly 2.0 or 2.1.

Cheers.



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]