From b01c39bb944e7ef932ab0a95aa40e694c07ce3b4 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Tue, 21 Jan 2003 16:44:27 +0000 Subject: [PATCH] SF bug 671779: Error in tzinfo.dst() docs tzinfo dst() should return timedelta(0) if DST is not effect, not 0. --- Doc/lib/libdatetime.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.40.0