Hi,

I'd expect the following shouldn't raise an exception:

[current Zope CVS]

>>> x=DateTime(1000,1,1)
>>> y=DateTime(x.HTML4())
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/home/jens/work/NGServer/dcCVS/Zope/lib/python/DateTime/DateTime.py", line 
716, in __init__
    yr,mo,dy,hr,mn,sc,tz=self._parse_iso8601(arg)
  File "/home/jens/work/NGServer/dcCVS/Zope/lib/python/DateTime/DateTime.py", line 
1624, in _parse_iso8601
    return self.__parse_iso8601(s)
  File "/home/jens/work/NGServer/dcCVS/Zope/lib/python/DateTime/DateTime.py", line 
1661, in __parse_iso8601
    ts = mktime((year,month,day,hour,minute,seconds,0,0,0))
ValueError: year out of range
>>> 

The variable 'ts' calculated using 'mktime' is *not* used in the
result of '__parse_iso8601', so I wonder why the call exists.

jens



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

Reply via email to