| Home | Trees | Index | Help | 
|---|
| Package vobject :: Module icalendar :: Class TimezoneComponent | 
 | 
object--+ |VBase--+ |Component--+ | TimezoneComponent
A VTIMEZONE object.
VTIMEZONEs are parsed by dateutil.tz.tzical, the resulting datetime.tzinfo subclass is stored in self.tzinfo, self.tzid stores the TZID associated with this timezone.| Method Summary | |
|---|---|
| Accept an existing Component or a tzinfo class. | |
| __repr__(self) | |
| For convenience, make self.contents directly accessible. | |
| __str__(self) | |
| gettzinfo(self) | |
| Given a tzinfo class, use known APIs to determine TZID, or use tzname. (Static method) | |
| prettyPrint(self,
          level,
          tabwidth) | |
| registerTzinfo(obj,
          tzinfo)(Class method) | |
| Create appropriate objects in self to represent tzinfo. | |
| Inherited from Component | |
| For convenience, make self.contents directly accessible. | |
| Add objOrName to contents, set behavior if it can be inferred. | |
| Return an iterable of all Component children. | |
| Return an iterable of all children. | |
|  | |
| Return an iterable of all ContentLine children. | |
| Set behavior if one matches name, versionLine.value. | |
| Assign a PROFILE to this unnamed component. | |
|  | |
| Recursively transform native children to vanilla representations. | |
| Recursively replace children with their native representation. | |
| Inherited from VBase | |
| Set behavior if name is in self.parentBehavior.knownChildren. | |
| Set behavior to None. | |
| Serialize to buf if it exists, otherwise return a string. | |
| Set behavior. | |
| Return self transformed into a ContentLine or Component if needed. | |
| Transform this object into a custom VBase subclass. | |
| Call the behavior's validate method, or return True. | |
| Inherited from object | |
| x.__delattr__('name') <==> del x.name | |
| x.__getattribute__('name') <==> x.name | |
| x.__hash__() <==> hash(x) | |
| T.__new__(S, ...) -> a new object with type S, a subtype of T | |
| helper for pickle | |
| helper for pickle | |
| Property Summary | |
|---|---|
| tzinfo | |
| Instance Variable Summary | |
|---|---|
| name: The uppercased name of the object, in this case always 
'VTIMEZONE'. | |
| tzid: The string used to refer to this timezone. | |
| tzinfo=vobject.icalendar.TimezoneComponent.tzinfo | |
| Inherited from Component | |
| contents: A dictionary of lists of Component or ContentLine instances. | |
| useBegin: A boolean flag determining whether BEGIN: and END: lines should be 
serialized. | |
| Inherited from VBase | |
| behavior: The Behavior class associated with this object, which controls 
validation, transformations, and encoding. | |
| group: An optional group prefix, should be used only to indicate sort order 
in vCards, according to RFC2426 | |
| isNative: Boolean describing whether this component is a Native instance. | |
| parentBehavior: The object's parent's behavior, or None if no behaviored parent 
exists. | |
| Instance Method Details | 
|---|
| __init__(self,
          tzinfo=None,
          *args,
          **kwds)
    Accept an existing Component or a tzinfo class. | 
| __setattr__(self, name, value)For convenience, make self.contents directly accessible.self.contents must contain lists, raise an error if value isn't a list. 
 | 
| settzinfo(self, tzinfo, start=2000, end=2030)Create appropriate objects in self to represent tzinfo. Assumptions: - DST <-> Standard transitions occur on the hour - never within a month of one another - twice or fewer times a year - never in the month of December - DST always moves offset exactly one hour later - tzinfo classes dst method always treats times that could be in either offset to be in the later regime | 
| Static Method Details | 
|---|
| pickTzid(tzinfo)Given a tzinfo class, use known APIs to determine TZID, or use tzname. | 
| Property Details | 
|---|
| tzinfo
 | 
| Instance Variable Details | 
|---|
| nameThe uppercased name of the object, in this case always 'VTIMEZONE'. | 
| tzidThe string used to refer to this timezone. | 
| Home | Trees | Index | Help | 
|---|
| Generated by Epydoc 2.1 on Fri Dec 14 17:25:14 2007 | http://epydoc.sf.net |