For recurring events in basic feeds, Google reports the duration in
seconds of the first instance of the event instead of the end time. I
don't know why they do it this way, there may be no particular reason.
In your case, 14400 is the number of seconds in 4 hours.
I don't see that there are any guarantees about what the contents will
be or how they will map onto the data elements of an event, so instead
of trying to parse the free form text of the content I would try to
parse the gd:recurrence from the full feed instead.
Ray
Prometheus wrote:
> It is probable a silly question but I having difficulties interpreting
> the Duration attribute that is returned from a calendar atomEntry
> content.
>
> Using GDATA the following code returns a list of the events from a
> public calendar
> ArrayList list = new ArrayList();
> AtomFeed feedA = new AtomFeed(calendarQuery.Uri,this);
> Stream streamA = this.Query(calendarQuery.Uri);
> feedA.Parse(streamA, AlternativeFormat.Atom);
> streamA.Close();
> foreach(AtomEntry en in feedA.Entries){
> AtomContent contentillo = en.Content as AtomContent;
> list.Add("Title:"+en.Title.Text
> +"<br>"+contentillo.Content.ToString());
> }
>
> I'm building a parser for the content of atom entry however i still
> don't quite understand how the Duration value can be interpreted.One
> entry in the calendar content is the following.In this case this
> recurrent event duration value is 14400 but what does it mean?
>
> Title:Feria del Payaso<br>Recurring Event<br> First start: 2007-12-24
> 08:00:00 MST <br> Duration: 14400 <br>Event Status: confirme
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---