Package flumotion :: Package common :: Module tz :: Class DSTTimezone
[hide private]

Class DSTTimezone

source code

     object --+    
              |    
datetime.tzinfo --+
                  |
                 DSTTimezone

A tzinfo class representing a DST timezone

Instance Methods [hide private]
 
__init__(self, tzid, stdname, dstname, stdoffset, dstoffset, stdoffsetfrom, dstoffsetfrom, dststart, dstend, stdrrule, dstrrule)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__str__(self)
str(x)
source code
 
tzname(self, dt)
datetime -> string name of time zone.
source code
 
utcoffset(self, dt)
datetime -> minutes east of UTC (negative for west of UTC).
source code
 
fromutc(self, dt)
datetime in UTC -> datetime in local time.
source code
 
dst(self, dt)
datetime -> DST offset in minutes east of UTC.
source code
 
copy(self) source code
 
_isdst(self, dt) source code

Inherited from datetime.tzinfo: __getattribute__, __new__, __reduce__

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

Class Variables [hide private]
  ZERO = datetime.timedelta(0)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, tzid, stdname, dstname, stdoffset, dstoffset, stdoffsetfrom, dstoffsetfrom, dststart, dstend, stdrrule, dstrrule)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • tzid (str) - Timezone unique ID
  • stdname (str) - Name of the Standard observance
  • dstname (str) - Name of the DST observance
  • stdoffset (datetime.timedelta) - UTC offset for the standard observance
  • dstoffset (datetime.timedelta) - UTC offset for the DST observance
  • stdoffsetfrom (l{datetime.timedelta}) - UTC offset which is in use when the onset of Standard observance begins
  • dstoffsetfrom - UTC offset which is in use when the onset of DST observance begins
  • dststart (datetime.datetime) - Start of the DST observance
  • dstend (datetime.datetime) - End of the DST observance
  • stdrrule (rrule.rrule) - Recurrence rule for the standard observance
  • dstrrule (rrule.rrule) - Recurrence rule for the daylight observance
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

tzname(self, dt)

source code 

datetime -> string name of time zone.

Overrides: datetime.tzinfo.tzname
(inherited documentation)

utcoffset(self, dt)

source code 

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

Overrides: datetime.tzinfo.utcoffset
(inherited documentation)

fromutc(self, dt)

source code 

datetime in UTC -> datetime in local time.

Overrides: datetime.tzinfo.fromutc
(inherited documentation)

dst(self, dt)

source code 

datetime -> DST offset in minutes east of UTC.

Overrides: datetime.tzinfo.dst
(inherited documentation)