mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[1.7.x] Documented django.utils.timezone.FixedOffset; thanks Aymeric.
Backport of 25264d4e2a4b3fd6a25e6b617388ea24f3d48d63 from master
This commit is contained in:
parent
be0bc9a9e7
commit
5f600db37a
@ -155,7 +155,7 @@ The functions defined in this module share the following properties:
|
|||||||
Parses a string and returns a :class:`datetime.datetime`.
|
Parses a string and returns a :class:`datetime.datetime`.
|
||||||
|
|
||||||
UTC offsets are supported; if ``value`` describes one, the result's
|
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.
|
instance.
|
||||||
|
|
||||||
``django.utils.decorators``
|
``django.utils.decorators``
|
||||||
@ -843,6 +843,13 @@ appropriate entities.
|
|||||||
|
|
||||||
:class:`~datetime.tzinfo` instance that represents UTC.
|
: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)
|
.. function:: get_fixed_timezone(offset)
|
||||||
|
|
||||||
.. versionadded:: 1.7
|
.. versionadded:: 1.7
|
||||||
|
Loading…
x
Reference in New Issue
Block a user