Package pyxb :: Package utils :: Module utility :: Class LocalTimeZone
[hide private]
[frames] | no frames]

Class LocalTimeZone

source code

     object --+    
              |    
datetime.tzinfo --+
                  |
                 LocalTimeZone

A datetime.tzinfo subclass for the local time zone.

Mostly pinched from the datetime.tzinfo documentation in Python 2.5.1.

Instance Methods [hide private]
 
utcoffset(self, dt)
datetime -> minutes east of UTC (negative for west of UTC).
source code
 
dst(self, dt)
datetime -> DST offset in minutes east of UTC.
source code
 
tzname(self, dt)
datetime -> string name of time zone.
source code
 
__isDST(self, dt) source code

Inherited from datetime.tzinfo: __getattribute__, __new__, __reduce__, fromutc

Inherited from object: __delattr__, __format__, __hash__, __init__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __STDOffset = datetime.timedelta(-1, 64800)
  __DSTOffset = datetime.timedelta(-1, 68400)
  __ZeroDelta = datetime.timedelta(0)
  __DSTDelta = datetime.timedelta(0, 3600)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

utcoffset(self, dt)

source code 

datetime -> minutes east of UTC (negative for west of UTC).

Overrides: datetime.tzinfo.utcoffset
(inherited documentation)

dst(self, dt)

source code 

datetime -> DST offset in minutes east of UTC.

Overrides: datetime.tzinfo.dst
(inherited documentation)

tzname(self, dt)

source code 

datetime -> string name of time zone.

Overrides: datetime.tzinfo.tzname
(inherited documentation)