[Zope-dev] DateTime, strftime and TimeError
Santi Camps
scamps at earcon.com
Wed May 11 10:33:48 EDT 2005
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
More information about the Zope-Dev
mailing list