On Sat, 2003-11-29 at 21:30, William Jon McCann wrote:
> Hi,
>
> I'm almost done with a panel clock / calendar integration patch. I am
> having a bit of trouble getting recurrences to work. I'm trying to use
> e_cal_generate_instances. However, I can't get it to find any objects.
> I think I have tracked it down to the following:
>
> query = g_strdup_printf ("(occur-in-time-range? (%lu) (%lu))",
> start, end);
> e_cal_get_object_list (ecal, query, &objects, NULL);
>
> Returns an error, while
>
> query = g_strdup_printf ("(occur-in-time-range? %lu %lu)",
> start, end);
> e_cal_get_object_list (ecal, query, &objects, NULL);
>
> Doesn't return an error but finds no objects, while
>
> iso_start = isodate_from_time_t (start);
> iso_end = isodate_from_time_t (end);
> query = g_strdup_printf ("(occur-in-time-range? (make-time \"%s\")
> (make-time \"%s\"))"
> iso_start, iso_end);
> e_cal_get_object_list (ecal, query, &objects, NULL);
>
> finds objects.
>
this last one is the correct way, although we should probably also
support time_t values directly.
cheers
_______________________________________________
evolution-hackers maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution-hackers