Re: [Evolution-hackers] e_cal_get_object_list query
- From: Rodrigo Moya <rodrigo ximian com>
- To: mccann jhu edu
- Cc: evolution-hackers lists ximian com
- Subject: Re: [Evolution-hackers] e_cal_get_object_list query
- Date: Sun, 30 Nov 2003 12:29:16 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]