Changeset 391 for python/trunk/Doc/library/calendar.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/library/calendar.rst
r2 r391 1 2 1 :mod:`calendar` --- General calendar-related functions 3 2 ====================================================== … … 8 7 .. sectionauthor:: Drew Csillag <drew_csillag@geocities.com> 9 8 9 **Source code:** :source:`Lib/calendar.py` 10 11 -------------- 10 12 11 13 This module allows you to output calendars like the Unix :program:`cal` program, … … 17 19 functionality, see also the :mod:`datetime` and :mod:`time` modules. 18 20 19 Most of these functions and class ses rely on the :mod:`datetime` module which21 Most of these functions and classes rely on the :mod:`datetime` module which 20 22 uses an idealized calendar, the current Gregorian calendar indefinitely extended 21 23 in both directions. This matches the definition of the "proleptic Gregorian" … … 179 181 180 182 This subclass of :class:`TextCalendar` can be passed a locale name in the 181 constructor and will return month and weekday names in the specified 182 locale. If this locale includes an encoding all strings containing month and183 weekdaynames will be returned as unicode.183 constructor and will return month and weekday names in the specified locale. 184 If this locale includes an encoding all strings containing month and weekday 185 names will be returned as unicode. 184 186 185 187 .. versionadded:: 2.5 … … 195 197 .. versionadded:: 2.5 196 198 199 .. note:: 200 201 The :meth:`formatweekday` and :meth:`formatmonthname` methods of these two 202 classes temporarily change the current locale to the given *locale*. Because 203 the current locale is a process-wide setting, they are not thread-safe. 204 205 197 206 For simple text calendars this module provides the following functions. 198 207 … … 286 295 .. function:: timegm(tuple) 287 296 288 An unrelated but handy function that takes a time tuple such as returned by the 289 :func:`gmtime` function in the :mod:`time` module, and returns the corresponding 290 Unix timestamp value, assuming an epoch of 1970, and the POSIX encoding. In 291 fact, :func:`time.gmtime` and :func:`timegm` are each others' inverse. 297 An unrelated but handy function that takes a time tuple such as returned by 298 the :func:`~time.gmtime` function in the :mod:`time` module, and returns the 299 corresponding Unix timestamp value, assuming an epoch of 1970, and the POSIX 300 encoding. In fact, :func:`time.gmtime` and :func:`timegm` are each others' 301 inverse. 292 302 293 303 .. versionadded:: 2.0
Note:
See TracChangeset
for help on using the changeset viewer.