Package events :: Module events :: Class CustomOffset
[hide private]
[frames] | no frames]

Class CustomOffset

source code

     object --+    
              |    
datetime.tzinfo --+
                  |
                 CustomOffset

Custom Timezone-Info

Takes a String containing Timezone Information (e.g. +04:00) and creates the corresponding Timezone Info Object.

See http://iorich.caltech.edu/~t/transfer/python-trunk-doc/library/datetime.html for more information.

Instance Methods [hide private]
 
__init__(self, name, st)
Constructor
source code
 
utcoffset(self, dt)
Calculates timedelta
source code
 
tzname(self, dt)
datetime -> string name of time zone.
source code
 
dst(self, dt)
datetime -> DST offset in minutes east of UTC.
source code

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

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, st)
(Constructor)

source code 

Constructor

Parses the string and saves the details in local variables.

Overrides: object.__init__

utcoffset(self, dt)

source code 

Calculates timedelta

Overrides: datetime.tzinfo.utcoffset

tzname(self, dt)

source code 

datetime -> string name of time zone.

Overrides: datetime.tzinfo.tzname
(inherited documentation)

dst(self, dt)

source code 

datetime -> DST offset in minutes east of UTC.

Overrides: datetime.tzinfo.dst
(inherited documentation)