Class representing a time zone.
The representation is simply the offset, in seconds, from UTC.
__init__ | Constructor for a named time zone. |
GetOffset | Return the offset of this time zone from UTC, in seconds. |
Make | Create a time zone with the given offset in seconds. |
Class representing a time zone.
Possible constructors:
TimeZone(tz)
TimeZone(offset=0)
Overloaded Implementations:
__init__ (self, tz)
Constructor for a named time zone.
Parameters: | tz (DateTime.TZ) – |
---|
__init__ (self, offset=0)
Constructor for the given offset in seconds.
Parameters: | offset (long) – |
---|
Return the offset of this time zone from UTC, in seconds.
Return type: | long |
---|
Create a time zone with the given offset in seconds.
Parameters: | offset (long) – |
---|---|
Return type: | DateTime.TimeZone |