Hi all,

I think its known that using strftime method of DateTime module with dates <= 1900 or >= 2038, a TimeError is raised. For instance:

>> d = DateTime('2045/30/01')
>> d.strftime('%d/%m/%Y')
DateTime.DateTime.TimeError: The time 2369343600.000000 is beyond the range of this Python implementation


I've read that the reason was a validation to avoid int overflows. I think this could be fixed using datetime module (new in python 2.3) instead of old time.localtime

Do you think its a good idea ?   Can I provide a patch that way ?

Thanks

Santi Camps



_______________________________________________
Zope-Dev maillist - Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Reply via email to