Recurrence#
This is the ICalRecurrence instance.
Constructors#
- class Recurrence
- classmethod new() Recurrence#
Creates a new
Recurrence.Added in version 1.0.
- classmethod new_from_string(str: str) Recurrence#
Converts a string to a
Recurrence.Added in version 1.0.
- Parameters:
str – The string representation of the
Recurrence
Methods#
- class Recurrence
- clear() None#
Resets an
Recurrence.Added in version 1.0.
- classmethod day_day_of_week() RecurrenceWeekday#
Decodes a day to a weekday in a week.
Added in version 1.0.
- classmethod frequency_from_string() RecurrenceFrequency#
Converts a string representation to an enum representation for the frequency.
Added in version 2.0.
- classmethod frequency_to_string() str#
Converts a enum representation to a string representation for the frequency.
Added in version 2.0.
- get_by_day(index: int) int#
Gets the by_day value at index
index. The index should be less thanDAY_SIZE.Added in version 1.0.
- Parameters:
index – The index in by_day of
Recurrence, less thanDAY_SIZE
- get_by_day_array() list[int]#
Gets the by_day array from
Recurrence. The array size is I_CAL_BY_DAY_SIZE.Added in version 1.0.
- get_by_hour(index: int) int#
Gets the by_hour value at index
index. The index should be less thanHOUR_SIZE.Added in version 1.0.
- Parameters:
index – The index in by_hour of
Recurrence, less thanHOUR_SIZE
- get_by_hour_array() list[int]#
Gets the by_hour array from
Recurrence. The array size is I_CAL_BY_HOUR_SIZE.Added in version 1.0.
- get_by_minute(index: int) int#
Gets the by_minute value at index
index. The index should be less thanMINUTE_SIZE.Added in version 1.0.
- Parameters:
index – The index in by_minute of
Recurrence, less thanMINUTE_SIZE
- get_by_minute_array() list[int]#
Gets the by_minute array from
Recurrence. The array size is I_CAL_BY_MINUTE_SIZE.Added in version 1.0.
- get_by_month(index: int) int#
Gets the by_month value at index
index. The index should be less thanMONTH_SIZE.Added in version 1.0.
- Parameters:
index – The index in by_month of
Recurrence, less thanMONTH_SIZE
- get_by_month_array() list[int]#
Gets the by_month array from
Recurrence. The array size is I_CAL_BY_MONTH_SIZE.Added in version 1.0.
- get_by_month_day(index: int) int#
Gets the by_month_day value at index
index. The index should be less thanMONTHDAY_SIZE.Added in version 1.0.
- Parameters:
index – The index in by_month_day of
Recurrence, less thanMONTHDAY_SIZE
- get_by_month_day_array() list[int]#
Gets the by_month_day array from
Recurrence. The array size is I_CAL_BY_MONTHDAY_SIZE.Added in version 1.0.
- get_by_second(index: int) int#
Gets the by_second value at index
index. The index should be less thanSECOND_SIZE.Added in version 1.0.
- Parameters:
index – The index in by_second of
Recurrence, less thanSECOND_SIZE
- get_by_second_array() list[int]#
Gets the by_second array from
Recurrence. The array size if I_CAL_BY_SECOND_SIZE.Added in version 1.0.
- get_by_set_pos(index: int) int#
Gets the by_set_pos value at index
index. The index should be less thanSETPOS_SIZE.Added in version 1.0.
- Parameters:
index – The index in by_set_pos of
Recurrence, less thanSETPOS_SIZE
- get_by_set_pos_array() list[int]#
Gets the by_set_pos array from
Recurrence. The array size is I_CAL_BY_SETPOS_SIZE.Added in version 1.0.
- get_by_week_no(index: int) int#
Gets the by_week_no value at index
index. The index should be less thanWEEKNO_SIZE.Added in version 1.0.
- Parameters:
index – The index in by_week_no of
Recurrence, less thanWEEKNO_SIZE
- get_by_week_no_array() list[int]#
Gets the by_week_no array from
Recurrence. The array size is I_CAL_BY_WEEKNO_SIZE.Added in version 1.0.
- get_by_year_day(index: int) int#
Gets the by_year_day value at index
index. The index should be less thanYEARDAY_SIZE.Added in version 1.0.
- Parameters:
index – The index in by_year_day of
Recurrence, less thanYEARDAY_SIZE
- get_by_year_day_array() list[int]#
Gets the by_year_day array from
Recurrence. The array size is I_CAL_BY_YEARDAY_SIZE.Added in version 1.0.
- get_count() int#
Gets the count from
Recurrence.Added in version 1.0.
- get_freq() RecurrenceFrequency#
Gets the freq from
Recurrence.Added in version 1.0.
- get_interval() int#
Gets the interval from
Recurrence.Added in version 1.0.
- get_until() Time#
Gets the until from
Recurrence.Added in version 1.0.
- get_week_start() RecurrenceWeekday#
Gets the week_start from
Recurrence.Added in version 1.0.
- classmethod month_is_leap() bool#
Decodes a month and check whether it is a leap month.
Added in version 2.0.
- classmethod rscale_supported_calendars() Array#
Gets an array of calendars supporting rscale (currently always return NULL).
Added in version 2.0.
- set_by_day(index: int, value: int) None#
Sets the by_day array from
Recurrenceat the given index. The array size if I_CAL_BY_DAY_SIZE.Added in version 1.0.
- Parameters:
index – The index in by_day of
Recurrencevalue – The value to be set into by_day of
Recurrence
- set_by_day_array(values: list[int]) None#
Sets the by_day array in
recurat once. The array size can be less than I_CAL_BY_DAY_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated.Added in version 1.0.
- Parameters:
values – The array of values
- set_by_hour(index: int, value: int) None#
Sets the by_hour array from
Recurrenceat the given index. The array size is I_CAL_BY_HOUR_SIZE.Added in version 1.0.
- Parameters:
index – The index in by_hour of
Recurrencevalue – The value to be set into by_hour of
Recurrence
- set_by_hour_array(values: list[int]) None#
Sets the by_hour array in
recurat once. The array size can be less than I_CAL_BY_HOUR_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated.Added in version 1.0.
- Parameters:
values – The array of values
- set_by_minute(index: int, value: int) None#
Sets the by_minute array from
Recurrenceat the given index. The array size is I_CAL_BY_MINUTE_SIZE.Added in version 1.0.
- Parameters:
index – The index in by_minute of
Recurrencevalue – The value to be set into by_minute of
Recurrence
- set_by_minute_array(values: list[int]) None#
Sets the by_minute array in
recurat once. The array size can be less than I_CAL_BY_MINUTE_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated.Added in version 1.0.
- Parameters:
values – The array of values
- set_by_month(index: int, value: int) None#
Sets the by_month array from
Recurrenceat the given index. The array size is I_CAL_BY_MONTH_SIZE.Added in version 1.0.
- Parameters:
index – The index in by_month of
Recurrencevalue – The value to be set into by_month of
Recurrence
- set_by_month_array(values: list[int]) None#
Sets the by_month array in
recurat once. The array size can be less than I_CAL_BY_MONTH_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated.Added in version 1.0.
- Parameters:
values – The array of values
- set_by_month_day(index: int, value: int) None#
Sets the by_month_day array from
Recurrenceat the given index. The array size if I_CAL_BY_MONTHDAY_SIZE.Added in version 1.0.
- Parameters:
index – The index in by_month_day of
Recurrencevalue – The value to be set into by_month_day of
Recurrence
- set_by_month_day_array(values: list[int]) None#
Sets the by_month_day array in
recurat once. The array size can be less than I_CAL_BY_MONTHDAY_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated.Added in version 1.0.
- Parameters:
values – The array of values
- set_by_second(index: int, value: int) None#
Sets the by_second array from
Recurrenceat the given index. The array size is I_CAL_BY_SECOND_SIZE.Added in version 1.0.
- Parameters:
index – The index in by_second of
Recurrence, less than I_CAL_BY_SECOND_SIZEvalue – The value to be set into by_second of
Recurrence
- set_by_second_array(values: list[int]) None#
Sets the by_second array in
recurat once. The array size can be less than I_CAL_BY_SECOND_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated.Added in version 1.0.
- Parameters:
values – The array of values
- set_by_set_pos(index: int, value: int) None#
Sets the by_set_pos array from
Recurrenceat the given index. The array size is I_CAL_BY_SETPOS_SIZE.Added in version 1.0.
- Parameters:
index – The index in by_set_pos of
Recurrencevalue – The value to be set into by_set_pos of
Recurrence
- set_by_set_pos_array(values: list[int]) None#
Sets the by_set_pos array in
recurat once. The array size can be less than I_CAL_BY_SETPOS_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated.Added in version 1.0.
- Parameters:
values – The array of values
- set_by_week_no(index: int, value: int) None#
Sets the by_week_no array from
Recurrenceat the given index. The array size is I_CAL_BY_WEEKNO_SIZE.Added in version 1.0.
- Parameters:
index – The index in by_week_no of
Recurrencevalue – The value to be set into by_week_no of
Recurrence
- set_by_week_no_array(values: list[int]) None#
Sets the by_week_no array in
recurat once. The array size can be less than I_CAL_BY_WEEKNO_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated.Added in version 1.0.
- Parameters:
values – The array of values
- set_by_year_day(index: int, value: int) None#
Sets the by_year_day array from
Recurrenceat the given index. The array size if I_CAL_BY_YEARDAY_SIZE.Added in version 1.0.
- Parameters:
index – The index in by_year_day of
Recurrencevalue – The value to be set into by_year_day of
Recurrence
- set_by_year_day_array(values: list[int]) None#
Sets the by_year_day array in
recurat once. The array size can be less than I_CAL_BY_YEARDAY_SIZE. Shorter arrays are terminated with I_CAL_RECURRENCE_ARRAY_MAX value, longer arrays are truncated.Added in version 1.0.
- Parameters:
values – The array of values
- set_count(count: int) None#
Sets the count from
Recurrence.Added in version 1.0.
- Parameters:
count – The count of
Recurrence
- set_freq(freq: RecurrenceFrequency) None#
Sets the freq from
Recurrence.Added in version 1.0.
- Parameters:
freq – The freq of
Recurrence
- set_interval(interval: int) None#
Sets the interval from
Recurrence.Added in version 1.0.
- Parameters:
interval – The interval of
Recurrence
- set_until(until: Time) None#
Sets the until from
Recurrence.Added in version 1.0.
- Parameters:
until – The until of
Recurrence
- set_week_start(week_start: RecurrenceWeekday) None#
Sets the week_start from
Recurrence.Added in version 1.0.
- Parameters:
week_start – The week_start of
Recurrence
- classmethod skip_from_string() RecurrenceSkip#
Converts a string representation to an enum representation for the skip.
Added in version 2.0.
- classmethod skip_to_string() str#
Converts a enum representation to a string representation for the skip.
Added in version 2.0.
- to_string() str#
Converts a
Recurrenceto a string.Added in version 1.0.
- classmethod weekday_from_string() RecurrenceWeekday#
Converts a string representation to an enum representation for the weekday.
Added in version 1.0.