ICalGLib.Recurrence¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class ICalGLib.Recurrence(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
This is the
ICalGLib.Recurrence
instance.- classmethod day_day_of_week(day)¶
- Parameters:
day (
int
) – The encoded day which represents the day of the week and Nth day of the week- Returns:
The decoded weekday with Monday to be 1.
- Return type:
Decodes a day to a weekday in a week.
New in version 1.0.
- classmethod day_position(day)¶
- Parameters:
day (
int
) – The encoded day which represents the day of the week and Nth day of the week- Returns:
The decoded day of the week. 0 == any of day of week. 1 == first, 2 = second, -2 == second to last, etc
- Return type:
Decodes a day to a position of the weekday.
New in version 1.0.
- classmethod frequency_from_string(str)¶
- Parameters:
str (
str
) – The string representation of the frequency- Returns:
The enum representation of the frequency.
- Return type:
Converts a string representation to an enum representation for the frequency.
New in version 2.0.
- classmethod frequency_to_string(kind)¶
- Parameters:
kind (
ICalGLib.RecurrenceFrequency
) – The frequency enum- Returns:
The string representation of frequency
- Return type:
Converts a enum representation to a string representation for the frequency.
New in version 2.0.
- classmethod month_is_leap(month)¶
- Parameters:
month (
int
) – The month to be decoded- Returns:
Whether this month is a leap month.
- Return type:
Decodes a month and check whether it is a leap month.
New in version 2.0.
- classmethod month_month(month)¶
- Parameters:
month (
int
) – The month to be decoded- Returns:
The actual month number regardless of the leap flag.
- Return type:
New in version 2.0.
- classmethod new()¶
- Returns:
The newly created
ICalGLib.Recurrence
.- Return type:
Creates a new
ICalGLib.Recurrence
.New in version 1.0.
- classmethod new_from_string(str)¶
- Parameters:
str (
str
) – The string representation of theICalGLib.Recurrence
- Returns:
The
ICalGLib.Recurrence
converted from str.- Return type:
Converts a string to a
ICalGLib.Recurrence
.New in version 1.0.
- classmethod rscale_is_supported()¶
- Returns:
Whether rscale is supported
- Return type:
Checks whether rscale is supported.
New in version 2.0.
- classmethod rscale_supported_calendars()¶
- Returns:
Array of calendars. Currently always
None
.- Return type:
Gets an array of calendars supporting rscale (currently always return
None
).New in version 2.0.
- classmethod skip_from_string(str)¶
- Parameters:
str (
str
) – The string representation of the skip- Returns:
The enum representation of the skip.
- Return type:
Converts a string representation to an enum representation for the skip.
New in version 2.0.
- classmethod skip_to_string(kind)¶
- Parameters:
kind (
ICalGLib.RecurrenceSkip
) – The frequency enum- Returns:
The string representation of skip
- Return type:
Converts a enum representation to a string representation for the skip.
New in version 2.0.
- classmethod weekday_from_string(str)¶
- Parameters:
str (
str
) – The string representation of the weekday- Returns:
The enum representation of the weekday.
- Return type:
Converts a string representation to an enum representation for the weekday.
New in version 1.0.
- classmethod weekday_to_string(kind)¶
- Parameters:
kind (
ICalGLib.RecurrenceWeekday
) – The frequency enum- Returns:
The string representation of weekday
- Return type:
Converts a enum representation to a string representation for the weekday.
New in version 2.0.
- clear()¶
Resets an
ICalGLib.Recurrence
.New in version 1.0.
- get_by_day(index)¶
- Parameters:
index (
int
) – The index in by_day ofICalGLib.Recurrence
, less thanICalGLib.RecurrenceArraySizes.DAY_SIZE
- Returns:
The by_day of
ICalGLib.Recurrence
at index index.- Return type:
Gets the by_day value at index index. The index should be less than
ICalGLib.RecurrenceArraySizes.DAY_SIZE
.New in version 1.0.
- get_by_day_array()¶
- Returns:
The by_day of
ICalGLib.Recurrence
.- Return type:
[
int
]
Gets the by_day array from
ICalGLib.Recurrence
. The array size isICalGLib.RecurrenceArraySizes.DAY_SIZE
.New in version 1.0.
- get_by_hour(index)¶
- Parameters:
index (
int
) – The index in by_hour ofICalGLib.Recurrence
, less thanICalGLib.RecurrenceArraySizes.HOUR_SIZE
- Returns:
The by_hour of
ICalGLib.Recurrence
at index index.- Return type:
Gets the by_hour value at index index. The index should be less than
ICalGLib.RecurrenceArraySizes.HOUR_SIZE
.New in version 1.0.
- get_by_hour_array()¶
- Returns:
The by_hour of
ICalGLib.Recurrence
.- Return type:
[
int
]
Gets the by_hour array from
ICalGLib.Recurrence
. The array size isICalGLib.RecurrenceArraySizes.HOUR_SIZE
.New in version 1.0.
- get_by_minute(index)¶
- Parameters:
index (
int
) – The index in by_minute ofICalGLib.Recurrence
, less thanICalGLib.RecurrenceArraySizes.MINUTE_SIZE
- Returns:
The by_minute of
ICalGLib.Recurrence
at index index.- Return type:
Gets the by_minute value at index index. The index should be less than
ICalGLib.RecurrenceArraySizes.MINUTE_SIZE
.New in version 1.0.
- get_by_minute_array()¶
- Returns:
The by_minute of
ICalGLib.Recurrence
.- Return type:
[
int
]
Gets the by_minute array from
ICalGLib.Recurrence
. The array size isICalGLib.RecurrenceArraySizes.MINUTE_SIZE
.New in version 1.0.
- get_by_month(index)¶
- Parameters:
index (
int
) – The index in by_month ofICalGLib.Recurrence
, less thanICalGLib.RecurrenceArraySizes.MONTH_SIZE
- Returns:
The by_month of
ICalGLib.Recurrence
at index index.- Return type:
Gets the by_month value at index index. The index should be less than
ICalGLib.RecurrenceArraySizes.MONTH_SIZE
.New in version 1.0.
- get_by_month_array()¶
- Returns:
The by_month of
ICalGLib.Recurrence
.- Return type:
[
int
]
Gets the by_month array from
ICalGLib.Recurrence
. The array size isICalGLib.RecurrenceArraySizes.MONTH_SIZE
.New in version 1.0.
- get_by_month_day(index)¶
- Parameters:
index (
int
) – The index in by_month_day ofICalGLib.Recurrence
, less thanICalGLib.RecurrenceArraySizes.MONTHDAY_SIZE
- Returns:
The by_month_day of
ICalGLib.Recurrence
at index index.- Return type:
Gets the by_month_day value at index index. The index should be less than
ICalGLib.RecurrenceArraySizes.MONTHDAY_SIZE
.New in version 1.0.
- get_by_month_day_array()¶
- Returns:
The by_month_day of
ICalGLib.Recurrence
.- Return type:
[
int
]
Gets the by_month_day array from
ICalGLib.Recurrence
. The array size isICalGLib.RecurrenceArraySizes.MONTHDAY_SIZE
.New in version 1.0.
- get_by_second(index)¶
- Parameters:
index (
int
) – The index in by_second ofICalGLib.Recurrence
, less thanICalGLib.RecurrenceArraySizes.SECOND_SIZE
- Returns:
The by_second of
ICalGLib.Recurrence
at index index.- Return type:
Gets the by_second value at index index. The index should be less than
ICalGLib.RecurrenceArraySizes.SECOND_SIZE
.New in version 1.0.
- get_by_second_array()¶
- Returns:
The by_second of
ICalGLib.Recurrence
.- Return type:
[
int
]
Gets the by_second array from
ICalGLib.Recurrence
. The array size ifICalGLib.RecurrenceArraySizes.SECOND_SIZE
.New in version 1.0.
- get_by_set_pos(index)¶
- Parameters:
index (
int
) – The index in by_set_pos ofICalGLib.Recurrence
, less thanICalGLib.RecurrenceArraySizes.SETPOS_SIZE
- Returns:
The by_week_no of
ICalGLib.Recurrence
at index index.- Return type:
Gets the by_set_pos value at index index. The index should be less than
ICalGLib.RecurrenceArraySizes.SETPOS_SIZE
.New in version 1.0.
- get_by_set_pos_array()¶
- Returns:
The by_set_pos of
ICalGLib.Recurrence
.- Return type:
[
int
]
Gets the by_set_pos array from
ICalGLib.Recurrence
. The array size isICalGLib.RecurrenceArraySizes.SETPOS_SIZE
.New in version 1.0.
- get_by_week_no(index)¶
- Parameters:
index (
int
) – The index in by_week_no ofICalGLib.Recurrence
, less thanICalGLib.RecurrenceArraySizes.WEEKNO_SIZE
- Returns:
The by_week_no of
ICalGLib.Recurrence
at index index.- Return type:
Gets the by_week_no value at index index. The index should be less than
ICalGLib.RecurrenceArraySizes.WEEKNO_SIZE
.New in version 1.0.
- get_by_week_no_array()¶
- Returns:
The by_week_no of
ICalGLib.Recurrence
.- Return type:
[
int
]
Gets the by_week_no array from
ICalGLib.Recurrence
. The array size isICalGLib.RecurrenceArraySizes.WEEKNO_SIZE
.New in version 1.0.
- get_by_year_day(index)¶
- Parameters:
index (
int
) – The index in by_year_day ofICalGLib.Recurrence
, less thanICalGLib.RecurrenceArraySizes.YEARDAY_SIZE
- Returns:
The by_year_day of
ICalGLib.Recurrence
at index index.- Return type:
Gets the by_year_day value at index index. The index should be less than
ICalGLib.RecurrenceArraySizes.YEARDAY_SIZE
.New in version 1.0.
- get_by_year_day_array()¶
- Returns:
The by_year_day of
ICalGLib.Recurrence
.- Return type:
[
int
]
Gets the by_year_day array from
ICalGLib.Recurrence
. The array size isICalGLib.RecurrenceArraySizes.YEARDAY_SIZE
.New in version 1.0.
- get_count()¶
- Returns:
The count of
ICalGLib.Recurrence
.- Return type:
Gets the count from
ICalGLib.Recurrence
.New in version 1.0.
- get_freq()¶
- Returns:
The freq of
ICalGLib.Recurrence
.- Return type:
Gets the freq from
ICalGLib.Recurrence
.New in version 1.0.
- get_interval()¶
- Returns:
The interval of
ICalGLib.Recurrence
.- Return type:
Gets the interval from
ICalGLib.Recurrence
.New in version 1.0.
- get_until()¶
- Returns:
The until of
ICalGLib.Recurrence
.- Return type:
Gets the until from
ICalGLib.Recurrence
.New in version 1.0.
- get_week_start()¶
- Returns:
The week_start of
ICalGLib.Recurrence
.- Return type:
Gets the week_start from
ICalGLib.Recurrence
.New in version 1.0.
- set_by_day(index, value)¶
- Parameters:
index (
int
) – The index in by_day ofICalGLib.Recurrence
value (
int
) – The value to be set into by_day ofICalGLib.Recurrence
Sets the by_day array from
ICalGLib.Recurrence
at the given index. The array size ifICalGLib.RecurrenceArraySizes.DAY_SIZE
.New in version 1.0.
- set_by_day_array(values)¶
- Parameters:
values ([
int
]) – The array of values
Sets the by_day array in self at once. The array size can be less than
ICalGLib.RecurrenceArraySizes.DAY_SIZE
. Shorter arrays are terminated withICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
value, longer arrays are truncated.New in version 1.0.
- set_by_hour(index, value)¶
- Parameters:
index (
int
) – The index in by_hour ofICalGLib.Recurrence
value (
int
) – The value to be set into by_hour ofICalGLib.Recurrence
Sets the by_hour array from
ICalGLib.Recurrence
at the given index. The array size isICalGLib.RecurrenceArraySizes.HOUR_SIZE
.New in version 1.0.
- set_by_hour_array(values)¶
- Parameters:
values ([
int
]) – The array of values
Sets the by_hour array in self at once. The array size can be less than
ICalGLib.RecurrenceArraySizes.HOUR_SIZE
. Shorter arrays are terminated withICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
value, longer arrays are truncated.New in version 1.0.
- set_by_minute(index, value)¶
- Parameters:
index (
int
) – The index in by_minute ofICalGLib.Recurrence
value (
int
) – The value to be set into by_minute ofICalGLib.Recurrence
Sets the by_minute array from
ICalGLib.Recurrence
at the given index. The array size isICalGLib.RecurrenceArraySizes.MINUTE_SIZE
.New in version 1.0.
- set_by_minute_array(values)¶
- Parameters:
values ([
int
]) – The array of values
Sets the by_minute array in self at once. The array size can be less than
ICalGLib.RecurrenceArraySizes.MINUTE_SIZE
. Shorter arrays are terminated withICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
value, longer arrays are truncated.New in version 1.0.
- set_by_month(index, value)¶
- Parameters:
index (
int
) – The index in by_month ofICalGLib.Recurrence
value (
int
) – The value to be set into by_month ofICalGLib.Recurrence
Sets the by_month array from
ICalGLib.Recurrence
at the given index. The array size isICalGLib.RecurrenceArraySizes.MONTH_SIZE
.New in version 1.0.
- set_by_month_array(values)¶
- Parameters:
values ([
int
]) – The array of values
Sets the by_month array in self at once. The array size can be less than
ICalGLib.RecurrenceArraySizes.MONTH_SIZE
. Shorter arrays are terminated withICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
value, longer arrays are truncated.New in version 1.0.
- set_by_month_day(index, value)¶
- Parameters:
index (
int
) – The index in by_month_day ofICalGLib.Recurrence
value (
int
) – The value to be set into by_month_day ofICalGLib.Recurrence
Sets the by_month_day array from
ICalGLib.Recurrence
at the given index. The array size ifICalGLib.RecurrenceArraySizes.MONTHDAY_SIZE
.New in version 1.0.
- set_by_month_day_array(values)¶
- Parameters:
values ([
int
]) – The array of values
Sets the by_month_day array in self at once. The array size can be less than
ICalGLib.RecurrenceArraySizes.MONTHDAY_SIZE
. Shorter arrays are terminated withICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
value, longer arrays are truncated.New in version 1.0.
- set_by_second(index, value)¶
- Parameters:
index (
int
) – The index in by_second ofICalGLib.Recurrence
, less thanICalGLib.RecurrenceArraySizes.SECOND_SIZE
value (
int
) – The value to be set into by_second ofICalGLib.Recurrence
Sets the by_second array from
ICalGLib.Recurrence
at the given index. The array size isICalGLib.RecurrenceArraySizes.SECOND_SIZE
.New in version 1.0.
- set_by_second_array(values)¶
- Parameters:
values ([
int
]) – The array of values
Sets the by_second array in self at once. The array size can be less than
ICalGLib.RecurrenceArraySizes.SECOND_SIZE
. Shorter arrays are terminated withICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
value, longer arrays are truncated.New in version 1.0.
- set_by_set_pos(index, value)¶
- Parameters:
index (
int
) – The index in by_set_pos ofICalGLib.Recurrence
value (
int
) – The value to be set into by_set_pos ofICalGLib.Recurrence
Sets the by_set_pos array from
ICalGLib.Recurrence
at the given index. The array size isICalGLib.RecurrenceArraySizes.SETPOS_SIZE
.New in version 1.0.
- set_by_set_pos_array(values)¶
- Parameters:
values ([
int
]) – The array of values
Sets the by_set_pos array in self at once. The array size can be less than
ICalGLib.RecurrenceArraySizes.SETPOS_SIZE
. Shorter arrays are terminated withICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
value, longer arrays are truncated.New in version 1.0.
- set_by_week_no(index, value)¶
- Parameters:
index (
int
) – The index in by_week_no ofICalGLib.Recurrence
value (
int
) – The value to be set into by_week_no ofICalGLib.Recurrence
Sets the by_week_no array from
ICalGLib.Recurrence
at the given index. The array size isICalGLib.RecurrenceArraySizes.WEEKNO_SIZE
.New in version 1.0.
- set_by_week_no_array(values)¶
- Parameters:
values ([
int
]) – The array of values
Sets the by_week_no array in self at once. The array size can be less than
ICalGLib.RecurrenceArraySizes.WEEKNO_SIZE
. Shorter arrays are terminated withICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
value, longer arrays are truncated.New in version 1.0.
- set_by_year_day(index, value)¶
- Parameters:
index (
int
) – The index in by_year_day ofICalGLib.Recurrence
value (
int
) – The value to be set into by_year_day ofICalGLib.Recurrence
Sets the by_year_day array from
ICalGLib.Recurrence
at the given index. The array size ifICalGLib.RecurrenceArraySizes.YEARDAY_SIZE
.New in version 1.0.
- set_by_year_day_array(values)¶
- Parameters:
values ([
int
]) – The array of values
Sets the by_year_day array in self at once. The array size can be less than
ICalGLib.RecurrenceArraySizes.YEARDAY_SIZE
. Shorter arrays are terminated withICalGLib.RecurrenceArrayMaxValues.RECURRENCE_ARRAY_MAX
value, longer arrays are truncated.New in version 1.0.
- set_count(count)¶
- Parameters:
count (
int
) – The count ofICalGLib.Recurrence
Sets the count from
ICalGLib.Recurrence
.New in version 1.0.
- set_freq(freq)¶
- Parameters:
freq (
ICalGLib.RecurrenceFrequency
) – The freq ofICalGLib.Recurrence
Sets the freq from
ICalGLib.Recurrence
.New in version 1.0.
- set_interval(interval)¶
- Parameters:
interval (
int
) – The interval ofICalGLib.Recurrence
Sets the interval from
ICalGLib.Recurrence
.New in version 1.0.
- set_until(until)¶
- Parameters:
until (
ICalGLib.Time
) – The until ofICalGLib.Recurrence
Sets the until from
ICalGLib.Recurrence
.New in version 1.0.
- set_week_start(week_start)¶
- Parameters:
week_start (
ICalGLib.RecurrenceWeekday
) – The week_start ofICalGLib.Recurrence
Sets the week_start from
ICalGLib.Recurrence
.New in version 1.0.
- to_string()¶
- Returns:
The string representation of self.
- Return type:
Converts a
ICalGLib.Recurrence
to a string.New in version 1.0.