Missing counter-part functions for RRULE encoded values?
Ken Murchison
murch at fastmail.com
Tue Mar 20 05:09:14 PDT 2018
The recurrence code, as it stands, assumes that an actual RRULE is being
parsed to create the internal structure, e.g. BYDAY=3SU;BYMONTH=5L
Are you trying to build a struct icalrecurrencetype by hand? I'm not
sure I understand your use case.
On 03/20/2018 04:55 AM, Milan Crha wrote:
> Hi,
> while working on some recurrence code I noticed the icalrecur.h
> contains:
>
> enum icalrecurrencetype_weekday
> icalrecurrencetype_day_day_of_week(short day);
> int icalrecurrencetype_day_position(short day);
>
> and
>
> int icalrecurrencetype_month_is_leap(short month);
> int icalrecurrencetype_month_month(short month);
>
> but no counter-part functions, which would encode the weekday and
> position into the 'short day' value and similarly for the month value,
> to give it the is_leap flag and the month number and it would encode it
> into the 'month' value.
>
> Did I just miss them and they are provided in a different header or
> they are missing? Would it make sense to provide them?
>
> I know I can workaround the day value by using by_day[] and
> by_set_pos[], but I do not see how to workaround the month value. Maybe
> decode it from a string?
>
> Thanks and bye,
> Milan
>
> _______________________________________________
> libical-devel mailing list
> libical-devel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/libical-devel
--
Ken Murchison
Cyrus Development Team
FastMail US LLC
More information about the libical-devel
mailing list