| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -196,6 +196,13 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is | |||
| 196 | 196 | output (defaulting to the system default encoding). | |
| 197 | 197 | ||
| 198 | 198 | ||
| 199 | + .. method:: formatmonthname(theyear, themonth, withyear=True) | ||
| 200 | + | ||
| 201 | + Return a month name as an HTML table row. If *withyear* is true the year | ||
| 202 | + will be included in the row, otherwise just the month name will be | ||
| 203 | + used. | ||
| 204 | + | ||
| 205 | + | ||
| 199 | 206 | :class:`!HTMLCalendar` has the following attributes you can override to | |
| 200 | 207 | customize the CSS classes used by the calendar: | |
| 201 | 208 | ||
@@ -289,7 +296,7 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is | |||
| 289 | 296 | ||
| 290 | 297 | .. note:: | |
| 291 | 298 | ||
| 292 | - The constructor, :meth:`formatweekday` and :meth:`formatmonthname` methods | ||
| 299 | + The constructor, :meth:`!formatweekday` and :meth:`!formatmonthname` methods | ||
| 293 | 300 | of these two classes temporarily change the ``LC_TIME`` locale to the given | |
| 294 | 301 | *locale*. Because the current locale is a process-wide setting, they are | |
| 295 | 302 | not thread-safe. | |
@@ -358,7 +365,7 @@ For simple text calendars this module provides the following functions. | |||
| 358 | 365 | ||
| 359 | 366 | .. function:: month(theyear, themonth, w=0, l=0) | |
| 360 | 367 | ||
| 361 | - Returns a month's calendar in a multi-line string using the :meth:`formatmonth` | ||
| 368 | + Returns a month's calendar in a multi-line string using the :meth:`~TextCalendar.formatmonth` | ||
| 362 | 369 | of the :class:`TextCalendar` class. | |
| 363 | 370 | ||
| 364 | 371 | ||
@@ -370,7 +377,7 @@ For simple text calendars this module provides the following functions. | |||
| 370 | 377 | .. function:: calendar(year, w=2, l=1, c=6, m=3) | |
| 371 | 378 | ||
| 372 | 379 | Returns a 3-column calendar for an entire year as a multi-line string using | |
| 373 | - the :meth:`formatyear` of the :class:`TextCalendar` class. | ||
| 380 | + the :meth:`~TextCalendar.formatyear` of the :class:`TextCalendar` class. | ||
| 374 | 381 | ||
| 375 | 382 | ||
| 376 | 383 | .. function:: timegm(tuple) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,7 +35,6 @@ Doc/library/asyncio-subprocess.rst | |||
| 35 | 35 | Doc/library/asyncio-task.rst | |
| 36 | 36 | Doc/library/audioop.rst | |
| 37 | 37 | Doc/library/bdb.rst | |
| 38 | - Doc/library/calendar.rst | ||
| 39 | 38 | Doc/library/cgi.rst | |
| 40 | 39 | Doc/library/chunk.rst | |
| 41 | 40 | Doc/library/cmd.rst | |
| Back | FazBrowse Home | New Git URL |
0 commit comments