On Apr 24, 1:03 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> I've been looking at the query parameters and a little confused over
> the futureevents parameter.  If you specify a window with start-min &
> start-max, does this mean that you will get everything within this
> range, plus those past the start-max date?.

According to the documentation, 
http://code.google.com/apis/calendar/reference.html#Parameters,
the futureevents parameter "overrides the recurrence-expansion-start,
recurrence-expansion-end, start-min, and start-max values." So, if you
use futureevents, you will retrieve all events that are in the future,
irrespective of any other date related parameter that you pass.

> Correct me if I'm wrong
> but won't this go to something like 2031?.

The latest events that I see in my feeds are dated April 14, 2038, and
the event that would occur on April 19, 2038 does not appear. It's not
clear what Google is doing here, this date range is after the Unix
time rollover. Perhaps it is a more than 30 times 365 days in the
future from today?

> What I'm after is to have
> a constantly moving window, so you can specify a date range and then
> as it flicks over to the next day it moves on by one day.  I'm also
> using the lastmodified, so would like modified records upto yesterday
> and records for today that I haven't seen before (these could have a
> lastmodified date in the past depending on when they were entered into
> the Google Calendar).  I hope that makes sense.

I'm not sure that I understand your exact problem.

There is no way to explicitly query for events by their modification
date, but you can get a moving window of events by specifying start-
max and start-min on every request. Something like start-
min=2008-04-24&start-max=2008-04-25 would retrieve all of today's
events as I write and then start-min=2008-04-25&start-max=2008-04-26
would retrieve all tomorrow's (I say all presuming that there were
fewer than max-results on each of these days). The lastmodified
parameter value covers only the sort order of the returned results and
orderby=lastmodified is the default so that value shouldn't have any
impact on your results, but you could use it to feed the results to
your code in a sensible order for further processing.

Ray


--~--~---------~--~----~------------~-------~--~----~
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