[Zope-dev] DateTime, strftime and TimeError

Andreas Jung lists at andreas-jung.com
Thu May 12 08:24:36 EDT 2005



--On Mittwoch, 11. Mai 2005 16:08 Uhr +0200 Santi Camps <scamps at earcon.com> 
wrote:

>
>  >> 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
>

After some testing: datetime has the same problems and it is unlikely that 
we can solve
this problem in Zope as long as the underlying implementation in the libc 
sux (or better is
constrained on 32 bit systems).

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20050512/b267d462/attachment.bin


More information about the Zope-Dev mailing list