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

Skip to content

Commit e9996c6

Browse files
committed
Add version annotations for some older changes to the calendar module.
Closes SF patch #567867.
1 parent ab65996 commit e9996c6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Doc/lib/libcalendar.tex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ \section{\module{calendar} ---
2626
import calendar
2727
calendar.setfirstweekday(calendar.SUNDAY)
2828
\end{verbatim}
29+
\versionadded{2.0}
2930
\end{funcdesc}
3031

3132
\begin{funcdesc}{firstweekday}{}
3233
Returns the current setting for the weekday to start each week.
34+
\versionadded{2.0}
3335
\end{funcdesc}
3436

3537
\begin{funcdesc}{isleap}{year}
@@ -39,6 +41,8 @@ \section{\module{calendar} ---
3941
\begin{funcdesc}{leapdays}{y1, y2}
4042
Returns the number of leap years in the range
4143
[\var{y1}\ldots\var{y2}), where \var{y1} and \var{y2} are years.
44+
\versionchanged[This function didn't work for ranges spanning
45+
a century change in Python 1.5.2]{2.0}
4246
\end{funcdesc}
4347

4448
\begin{funcdesc}{weekday}{year, month, day}
@@ -68,6 +72,7 @@ \section{\module{calendar} ---
6872
centered. If \var{l} is given, it specifies the number of lines that
6973
each week will use. Depends on the first weekday as set by
7074
\function{setfirstweekday()}.
75+
\versionadded{2.0}
7176
\end{funcdesc}
7277

7378
\begin{funcdesc}{prcal}{year\optional{, w\optional{, l\optional{c}}}}
@@ -82,6 +87,7 @@ \section{\module{calendar} ---
8287
respectively. Depends on the first weekday as set by
8388
\function{setfirstweekday()}. The earliest year for which a calendar can
8489
be generated is platform-dependent.
90+
\versionadded{2.0}
8591
\end{funcdesc}
8692

8793
\begin{funcdesc}{timegm}{tuple}
@@ -90,6 +96,7 @@ \section{\module{calendar} ---
9096
module, and returns the corresponding \UNIX{} timestamp value, assuming
9197
an epoch of 1970, and the POSIX encoding. In fact,
9298
\function{time.gmtime()} and \function{timegm()} are each others' inverse.
99+
\versionadded{2.0}
93100
\end{funcdesc}
94101

95102

0 commit comments

Comments
 (0)