Gestiada / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

App Engine Calendar Sample of Parsing and Saving Recurring Events #51

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which API and version (e.g. Google Calendar Data API version 2)?
2.0

What format (e.g. JSON, Atom)?
JSON/Java

What Authentation (e.g. OAuth, OAuth 2, Android, ClientLogin)?
OAuth 1.0A

Java environment (e.g. Java 6, Android 2.2, App Engine 1.3.7)?
Java 6, App Engine 1.3.8

External references, such as API reference guide?

Please provide any additional information below.
I am currently syncing the calendar into the datastore and I need to handle 
recurrence. So far I can get the recurrence string, for example:

DTSTART;TZID=America/Los_Angeles:20101025T080000
DTEND;TZID=America/Los_Angeles:20101025T093000
RRULE:FREQ=WEEKLY;BYDAY=MO
BEGIN:VTIMEZONE
TZID:America/Los_Angeles
X-LIC-LOCATION:America/Los_Angeles
BEGIN:DAYLIGHT
TZOFFSETFROM:-0800
TZOFFSETTO:-0700
TZNAME:PDT
DTSTART:19700308T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0700
TZOFFSETTO:-0800
TZNAME:PST
DTSTART:19701101T020000
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
END:STANDARD
END:VTIMEZONE

but I have no clue how to parse it properly and I am wondering why their are 
several RRULE entries. Thanks!

Original issue reported on code.google.com by shaun.cl...@lexmatter.com on 25 Oct 2010 at 2:46

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 12 Nov 2010 at 1:56