phoenix_title wx.DateTime.TimeZone

Class representing a time zone.

The representation is simply the offset, in seconds, from UTC.


class_hierarchy Class Hierarchy

Inheritance diagram for class TimeZone:

method_summary Methods Summary

__init__

Constructor for a named time zone.

GetOffset

Return the offset of this time zone from UTC, in seconds.

IsLocal

Return True if this is the local time zone.

Make

Create a time zone with the given offset in seconds.


property_summary Properties Summary

Offset

See GetOffset


api Class API

class wx.DateTime.TimeZone(object)

Possible constructors:

TimeZone(tz)

TimeZone(offset=0)

Class representing a time zone.


Methods

__init__(self, *args, **kw)

overload 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) –





GetOffset(self)

Return the offset of this time zone from UTC, in seconds.

Return type:

long



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.

Return type:

bool

New in version 4.1/wxWidgets-3.1.1.



static Make(offset)

Create a time zone with the given offset in seconds.

Parameters:

offset (long) –

Return type:

wx.DateTime.TimeZone


Properties

Offset

See GetOffset