Class representing a time zone.
The representation is simply the offset, in seconds, from UTC
.
Constructor for a named time zone. |
|
Return the offset of this time zone from |
|
Return |
|
Create a time zone with the given offset in seconds. |
See |
wx.DateTime.
TimeZone
(object)¶Possible constructors:
TimeZone(tz : DateTime.TZ) -> None
TimeZone(offset: int=0) -> None
Class representing a time zone.
__init__
(self, *args, **kw)¶__init__ (self, tz : DateTime.TZ)
Constructor for a named time zone.
tz (DateTime.TZ) –
None
__init__ (self, offset: int=0)
Constructor for the given offset in seconds.
offset (long) –
None
GetOffset
(self)¶Return the offset of this time zone from UTC
, in seconds.
int
IsLocal
(self)¶Return True
if this is the local time zone.
This method can be useful for distinguishing between UTC
time zone and local time zone in Great Britain, which use the same offset as UTC
(i.e. 0), but do use DST
.
bool
New in version 4.1/wxWidgets-3.1.1.
Make
(offset : int)¶Create a time zone with the given offset in seconds.
offset (long) –