Hello Roger,

On Sep 22, 2011, at 16:48 , Roger KeIrad wrote:

> is there a way in RRULE property to mention the occurence value of an event 
> cause always we get the End fields that indicate until date ?
> i take that exemple :
> 
>                  Daily for 10 occurrences:
>                  D1 #10
> 
>                  Daily until 12/24/94:
>                  D1 19941224T000000Z

The number-of-occurrences parameter is dependent on the Calendar version used 
(different semantics in vCalendar 1.0 than in iCalendar 2.0), so it is not a 
useful value for the normalized internal representation. The until date however 
is nonambiguos. So the SyncML engine always converts incoming number of 
occurrences into end dates.

Now, if your backend DB has number of occurrences, then you need to convert 
that to an end date before you can pass it into the internal format. As the 
engine itself needs to perform this conversion, there are routines for that in 
rrules.cpp, endDateFromCount() and countFromEndDate(), you might want to use. 
As currently built, these routines are not public, so some modifications to the 
sources would be needed.

Best Regards,

Lukas


syncml...@plan44.ch
http://www.plan44.ch/syncmlios.php


_______________________________________________
os-libsynthesis mailing list
os-libsynthesis@synthesis.ch
http://lists.synthesis.ch/mailman/listinfo/os-libsynthesis

Reply via email to