From: Tim Peters Date: Tue, 21 Jan 2003 16:44:27 +0000 (+0000) Subject: SF bug 671779: Error in tzinfo.dst() docs X-Git-Tag: v2.3c1~2376 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b01c39bb944e7ef932ab0a95aa40e694c07ce3b4;p=python SF bug 671779: Error in tzinfo.dst() docs tzinfo dst() should return timedelta(0) if DST is not effect, not 0. --- diff --git a/Doc/lib/libdatetime.tex b/Doc/lib/libdatetime.tex index 2421fa7fd2..84869b0158 100644 --- a/Doc/lib/libdatetime.tex +++ b/Doc/lib/libdatetime.tex @@ -1055,8 +1055,8 @@ implement all of them. \begin{methoddesc}{dst}{self, dt} Return the daylight saving time (DST) adjustment, in minutes east of - UTC, or \code{None} if DST information isn't known. Return \code{0} if - DST is not in effect. + UTC, or \code{None} if DST information isn't known. Return + \code{timedelta(0)} if DST is not in effect. If DST is in effect, return the offset as a \class{timedelta} object (see \method{utcoffset()} for details). Note that DST offset, if applicable, has