Browse Source

Documented django.utils.timezone.FixedOffset; thanks Aymeric.

Tim Graham 10 years ago
parent
commit
25264d4e2a
1 changed files with 8 additions and 1 deletions
  1. 8 1
      docs/ref/utils.txt

+ 8 - 1
docs/ref/utils.txt

@@ -127,7 +127,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)
@@ -856,6 +856,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