pytz2007c error

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Mar 6 05:10:06 EST 2007


En Tue, 06 Mar 2007 06:41:59 -0300, looping <kadeko at gmail.com> escribió:

> On Mar 6, 9:51 am, "looping" <kad... at gmail.com> wrote:
>>
>> >>> from pytz import timezone
>> >>> eastern = timezone('US/Eastern')
>>
>> I'm running python 2.5 on WinXP French with the egg from CheeseShop.
>>
>> Same error with all timezone (like timezone('Europe/Zurich'),
>> timezone('Europe/Amsterdam'), ...) except a few one:>>> print  
>> timezone('UTC')
>>
>> UTC
>>
>> Is this a pytz problem or something I didn't understand ?
>
> OK, the error come from datetime.utcfromtimestamp that doesn't support
> negative value.
> pytz try to pass -1633280400 to this function.
>
> Is this a problem from Windows ?

Perhaps it's a problem in pytz trying to go too far in the past...  
-1633280400 refers to a date around 1919.

-- 
Gabriel Genellina




More information about the Python-list mailing list