Period
-
class Period(**properties: Any)
Superclasses: Object, Object
This is the ICalPeriod instance.
Constructors
-
class Period
-
classmethod new_from_string(str: str) → Period
Creates a Period from a string.
- Parameters:
str – The string used to create the Period
-
classmethod new_null_period() → Period
Creates a default Period.
Methods
-
class Period
-
as_ical_string() → str
Translates Period to string.
-
get_duration() → Duration
Gets the duration from an Period.
-
get_end() → Time
Gets the end time from an Period.
-
get_start() → Time
Gets the start time from an Period.
-
is_null_period() → bool
Checks the Period is null_period.
-
is_valid_period() → bool
Checks the Period is valid_period.
-
set_duration(duration: Duration) → None
Sets the duration of an Period.
- Parameters:
duration – The duration of period
-
set_end(end: Time) → None
Sets the end time of an Period.
- Parameters:
end – The end of period
-
set_start(start: Time) → None
Sets the start time of an Period.
- Parameters:
start – The start of period