[ZCM] [ZC] 1634/ 1 Request "DateTime Documentation Inconsistancy"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Mon Dec 20 12:02:38 EST 2004
Issue #1634 Update (Request) "DateTime Documentation Inconsistancy"
Status Pending, Zope/bug low
To followup, visit:
http://zope.org/Collectors/Zope/1634
==============================================================
= Request - Entry #1 by ldr on Dec 20, 2004 12:02 pm
There are inconsistencies in the DateTime module documentation, DateTime.txt, and it also appears that the DateTime docstrings are inconsistent. The ones that bit me were regarding float/int/long returning seconds since the epoch not days since 1901, though there may be others particualary regarding single argument constructors and any talk of 1901...
The DateTime.txt file in the DateTime module says at the end of the file:
> int(aDateTime)
>
> Convert to an integer number of days since Jan. 1, 1901 (gmt)
However dateTime.py says it returns the nuber of seconds since the epoch
> def __int__(self):
> """Convert to an integer number of seconds since the epoch (gmt)"""
> return int(self.millis() / 1000)
==============================================================
More information about the Zope-Collector-Monitor
mailing list