Back to index

plone3  3.1.7
Public Member Functions | Private Member Functions
icalendar.prop.LocalTimezone Class Reference
Inheritance diagram for icalendar.prop.LocalTimezone:
Inheritance graph
[legend]
Collaboration diagram for icalendar.prop.LocalTimezone:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def utcoffset
def dst
def tzname

Private Member Functions

def _isdst

Detailed Description

Timezone of the machine where the code is running

Definition at line 230 of file prop.py.


Member Function Documentation

def icalendar.prop.LocalTimezone._isdst (   self,
  dt 
) [private]

Definition at line 250 of file prop.py.

00250 
00251     def _isdst(self, dt):
00252         tt = (dt.year, dt.month, dt.day,
00253               dt.hour, dt.minute, dt.second,
00254               dt.weekday(), 0, -1)
00255         stamp = _time.mktime(tt)
00256         tt = _time.localtime(stamp)
00257         return tt.tm_isdst > 0

Here is the caller graph for this function:

def icalendar.prop.LocalTimezone.dst (   self,
  dt 
)

Definition at line 241 of file prop.py.

00241 
00242     def dst(self, dt):
00243         if self._isdst(dt):
00244             return DSTDIFF
00245         else:
00246             return ZERO

Here is the call graph for this function:

def icalendar.prop.LocalTimezone.tzname (   self,
  dt 
)

Definition at line 247 of file prop.py.

00247 
00248     def tzname(self, dt):
00249         return _time.tzname[self._isdst(dt)]

Here is the call graph for this function:

def icalendar.prop.LocalTimezone.utcoffset (   self,
  dt 
)

Definition at line 235 of file prop.py.

00235 
00236     def utcoffset(self, dt):
00237         if self._isdst(dt):
00238             return DSTOFFSET
00239         else:
00240             return STDOFFSET

Here is the call graph for this function:


The documentation for this class was generated from the following file: