En/na Andrew Langmead ha escrit:

On May 11, 2005, at 10:08 AM, Santi Camps wrote:

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

DateTime can handle dates with larger ranges, it just can't display them with the strftime method.

DateTime's strftime method is impelemented with the standard C libraries' strftime(), and a C time_t datatype only represents dates between 1970 and 2038.

Yes, I know, but displaying them through a datetime.datetime object the display can also work fine. That's my proposal.

Santi Camps
Zope-Dev maillist - Zope-Dev@zope.org
** 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