Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/calendar.rst

    r2 r391  
    1 
    21:mod:`calendar` --- General calendar-related functions
    32======================================================
     
    87.. sectionauthor:: Drew Csillag <drew_csillag@geocities.com>
    98
     9**Source code:** :source:`Lib/calendar.py`
     10
     11--------------
    1012
    1113This module allows you to output calendars like the Unix :program:`cal` program,
     
    1719functionality, see also the :mod:`datetime` and :mod:`time` modules.
    1820
    19 Most of these functions and classses rely on the :mod:`datetime` module which
     21Most of these functions and classes rely on the :mod:`datetime` module which
    2022uses an idealized calendar, the current Gregorian calendar indefinitely extended
    2123in both directions.  This matches the definition of the "proleptic Gregorian"
     
    179181
    180182   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 and
    183    weekday names 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.
    184186
    185187   .. versionadded:: 2.5
     
    195197   .. versionadded:: 2.5
    196198
     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
    197206For simple text calendars this module provides the following functions.
    198207
     
    286295.. function:: timegm(tuple)
    287296
    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.
    292302
    293303   .. versionadded:: 2.0
Note: See TracChangeset for help on using the changeset viewer.