recur_ensure_end_dates


Description:


[ Version ( since = "2.32" ) ]
public bool recur_ensure_end_dates (Component comp, bool refresh, RecurResolveTimezoneCb tz_cb, Cancellable? cancellable = null) throws Error

This recalculates the end dates for recurrence & exception rules which use the COUNT property.

If refresh is true it will recalculate all enddates for rules which use COUNT. If refresh is false, it will only calculate the enddate if it hasn't already been set. It returns true if the component was changed, i.e. if the component should be saved at some point. We store the enddate in the e_cal_evolution_enddate_parameter parameter of the RRULE or EXRULE.

Parameters:

comp

an Component

refresh

true to recalculate all end dates

tz_cb

function to call to resolve timezones

cancellable

optional Cancellable object, or null

tz_cb_data

user data to pass to tz_cb

Returns:

true if the component was changed, false otherwise


Namespace: ECal
Package: libecal-2.0



2022 vala-language.org