diff options
| author | Tim Graham <timograham@gmail.com> | 2015-01-17 09:30:52 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-01-17 09:31:56 -0500 |
| commit | b714316c0606110cd508863b6d12650004366aaf (patch) | |
| tree | 18fa112098cc75f912a076aab9701c378dd5b6bd /docs/ref | |
| parent | 666c12e5295d021c8d791d4410e5753d4a2cc98e (diff) | |
[1.8.x] Documented django.utils.timezone.FixedOffset; thanks Aymeric.
Backport of 25264d4e2a4b3fd6a25e6b617388ea24f3d48d63 from master
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/utils.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 55184c277b..c9a68b308e 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -155,7 +155,7 @@ The functions defined in this module share the following properties: Parses a string and returns a :class:`datetime.datetime`. UTC offsets are supported; if ``value`` describes one, the result's - ``tzinfo`` attribute is a :class:`~django.utils.tzinfo.FixedOffset` + ``tzinfo`` attribute is a :class:`~django.utils.timezone.FixedOffset` instance. .. function:: parse_duration(value) @@ -884,6 +884,13 @@ appropriate entities. :class:`~datetime.tzinfo` instance that represents UTC. +.. class:: FixedOffset(offset=None, name=None) + + .. versionadded:: 1.7 + + A :class:`~datetime.tzinfo` subclass modeling a fixed offset from UTC. + ``offset`` is an integer number of minutes east of UTC. + .. function:: get_fixed_timezone(offset) .. versionadded:: 1.7 |
