Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b01c39b

Browse files
committed
SF bug 671779: Error in tzinfo.dst() docs
tzinfo dst() should return timedelta(0) if DST is not effect, not 0.
1 parent 01524d0 commit b01c39b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/lib/libdatetime.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,8 +1055,8 @@ \subsection{\class{tzinfo} Objects \label{datetime-tzinfo}}
10551055

10561056
\begin{methoddesc}{dst}{self, dt}
10571057
Return the daylight saving time (DST) adjustment, in minutes east of
1058-
UTC, or \code{None} if DST information isn't known. Return \code{0} if
1059-
DST is not in effect.
1058+
UTC, or \code{None} if DST information isn't known. Return
1059+
\code{timedelta(0)} if DST is not in effect.
10601060
If DST is in effect, return the offset as a
10611061
\class{timedelta} object (see \method{utcoffset()} for details).
10621062
Note that DST offset, if applicable, has

0 commit comments

Comments
 (0)