.. include:: headings.inc .. _TimeZone: ========================================================================================================================================== |phoenix_title| **TimeZone** ========================================================================================================================================== Class representing a time zone. The representation is simply the offset, in seconds, from ``UTC``. | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **TimeZone** .. raw:: html

Inheritance diagram of TimeZone

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~TimeZone.__init__` Constructor for a named time zone. :meth:`~TimeZone.GetOffset` Return the offset of this time zone from ``UTC``, in seconds. :meth:`~TimeZone.Make` Create a time zone with the given offset in seconds. ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~TimeZone.Offset` See :meth:`~TimeZone.GetOffset` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: TimeZone(object) Class representing a time zone. **Possible constructors**:: TimeZone(tz) TimeZone(offset=0) .. method:: __init__(self, *args, **kw) |overload| **Overloaded Implementations**: **~~~** **__init__** `(self, tz)` Constructor for a named time zone. :param `tz`: :type `tz`: DateTime.TZ **~~~** **__init__** `(self, offset=0)` Constructor for the given offset in seconds. :param `offset`: :type `offset`: long **~~~** .. method:: GetOffset(self) Return the offset of this time zone from ``UTC``, in seconds. :rtype: `long` .. staticmethod:: Make(offset) Create a time zone with the given offset in seconds. :param `offset`: :type `offset`: long :rtype: `DateTime.TimeZone` .. attribute:: Offset See :meth:`~TimeZone.GetOffset`