Logo Search packages:      
Sourcecode: libical version File versions  Download package

def Period::Period::start (   self,
  v = None 
)

Return or set start time of the period. The start time may be
expressed as an RFC2445 format string or an instance of Time.
The return value is an instance of Time

Definition at line 100 of file Period.py.

00100                           :
        """
        Return or set start time of the period. The start time may be
        expressed as an RFC2445 format string or an instance of Time.
        The return value is an instance of Time
        """

        if(v != None):
            if isinstance(t,Time):
                t = v
            elif isinstance(t,StringType) or isinstance(t,IntType):
                t = Time(v,"DTSTART")
            else:
                raise TypeError

            icalperiodtype_start_set(self.pt,t.tt)

            self._update_value()
                
        
        return Time(icaltime_as_timet(icalperiodtype_start_get(self.pt)),
                    "DTSTART")

    def end(self,v=None):


Generated by  Doxygen 1.6.0   Back to index