Kaydet (Commit) b01c39bb authored tarafından Tim Peters's avatar Tim Peters

SF bug 671779: Error in tzinfo.dst() docs

tzinfo dst() should return timedelta(0) if DST is not effect, not 0.
üst 01524d04
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment