osdir.com
mailing list archive

Subject: Re: DLL(s) version(s) ? "C# Client" - msg#00146

List: org.google.api.calendar

Date: Prev Next Index Thread: Prev Next Index
There is a semantic difference between those 2 sets. Let me explain that, and you let me know if that is the observed behaviour.

The FeedQuery class has StartDate/EndDate. This is a base gData protocol query parameter and translates on the URI to ?updated-min/updated/max parameters.

What get's queried with those is the PUBLISHED date. So if you query for updated-min=2006-08-10Z&updated-max-2006-08-12Z you get all entries that were updated in this timeframe.

The EventQuery is a subclass for FeedQuery. It addes StartTime/Endtime as additional query parameters of the calendar, and here it means: start-min=2006-08-10Z&start-max=2006-08-12Zwith the meaning give me all calendar events that start between those 2 days.

That is a very different semantic.

Does that definition work with your observation?

Frank Mantek

On 8/23/06, Mehdi < mtaouti@xxxxxxxxxxxx> wrote:
I wasn't going crazy. I think I found out what was going wrong. At
least partly.
Actually.
Even with the latest DLLs the querying isn't working 100%. Or maybe I'm
not using it properly.
As I posted earlier when I put constraints on the query the whole
calendar events are returned, and the query has no effects.
Actually the query DOES work IF I use  StartTime but doesn't if I use
StartDate.
I only exchanged the two following lines with those below them to make
it work.
//query.StartDate = DateTime.Today.AddDays(0);
//query.EndDate = DateTime.Today.AddDays(2);
query.StartTime = DateTime.Now.AddDays(0);
query.EndTime = DateTime.Now.AddDays(2);
The commented lines do not work, Query has no effects
The lines with StartTime do work. For now :).

Cheers. And thank you so much for your hard work!
Your API rocks!



--~--~---------~--~----~------------~-------~--~----~
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 google-calendar-help-dataapi@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to google-calendar-help-dataapi-unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi
-~----------~----~----~----~------~----~------~--~---

Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: DLL(s) version(s) ? "C# Client"

I wasn't going crazy. I think I found out what was going wrong. At least partly. Actually. Even with the latest DLLs the querying isn't working 100%. Or maybe I'm not using it properly. As I posted earlier when I put constraints on the query the whole calendar events are returned, and the query has no effects. Actually the query DOES work IF I use StartTime but doesn't if I use StartDate. I only exchanged the two following lines with those below them to make it work. //query.StartDate = DateTime.Today.AddDays(0); //query.EndDate = DateTime.Today.AddDays(2); query.StartTime = DateTime.Now.AddDays(0); query.EndTime = DateTime.Now.AddDays(2); The commented lines do not work, Query has no effects The lines with StartTime do work. For now :). Cheers. And thank you so much for your hard work! Your API rocks!

Next Message by Date: click to view message preview

Re: DLL(s) version(s) ? "C# Client"

It actually Does! I think things make more sense now. Thank you!

Previous Message by Thread: click to view message preview

Re: DLL(s) version(s) ? "C# Client"

I wasn't going crazy. I think I found out what was going wrong. At least partly. Actually. Even with the latest DLLs the querying isn't working 100%. Or maybe I'm not using it properly. As I posted earlier when I put constraints on the query the whole calendar events are returned, and the query has no effects. Actually the query DOES work IF I use StartTime but doesn't if I use StartDate. I only exchanged the two following lines with those below them to make it work. //query.StartDate = DateTime.Today.AddDays(0); //query.EndDate = DateTime.Today.AddDays(2); query.StartTime = DateTime.Now.AddDays(0); query.EndTime = DateTime.Now.AddDays(2); The commented lines do not work, Query has no effects The lines with StartTime do work. For now :). Cheers. And thank you so much for your hard work! Your API rocks!

Next Message by Thread: click to view message preview

Re: DLL(s) version(s) ? "C# Client"

It actually Does! I think things make more sense now. Thank you!
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by