Remove query.futureevents = "true". The documentation for futureevents
says:

A shortcut to request all events that are scheduled for future times.
Overrides the recurrence-expansion-start, recurrence-expansion-end,
start-min, and start-max values.

Ray


On Apr 6, 2:49 pm, Salim Fadhley <[EMAIL PROTECTED]> wrote:
> I've managed to write a program that applies a query to a calendar
> feed, however it gets some very odd results - for these start & end
> values:
>
> '2008-04-06T22:42:19.226410'
> (Pdb) query.end_max
> '2008-04-07T00:42:19.226410'
> (Pdb)
>
> I get results completely outside the range in my query:
>
> Radia
>                 Start time: 2015-03-30T16:00:00.000+01:00
>                 End time:   2015-03-30T16:30:00.000+01:00
> Radia
>                 Start time: 2015-03-23T16:00:00.000Z
>                 End time:   2015-03-23T16:30:00.000Z
>
> ... everything is in 2015
>
> these are some of my query terms:
>
> Here is my querying code:
>
> def __call__(self, startTime, endTime ):
>         query =
> gdata.calendar.service.CalendarEventQuery( self.username,
> self.visibility, self.projection )
>
>         assert endTime > startTime, "End time should be after start
> time."
>
>         query.orderby = "starttime"
>         query.futureevents = "true"
>         query.singleevents = "true"
>
>         query.end_max = endTime.isoformat()
>         query.start_min = startTime.isoformat()
>
>         feed = self.calendar_service.CalendarQuery( query )
>         for i, an_event in enumerate(feed.entry):
>             yield an_event
>
> THANKS!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to