[conspire] Calculating iCal dates

Tony Godshall tony at of.net
Thu Jul 30 16:06:37 PDT 2009


On Tue, Jul 28, 2009 at 9:28 AM, Bill Lazar<bill at billsaysthis.com> wrote:
> I could use a little help and my Google-fu is not producing useful results.
>
> Can someone explain to me the formula for calculating the start and end
> timestamps for a .ics file event? I thought it was YYYYMMDDTHHMMSS or
> YYYYMMDDTHHMMSSZ but this is not working out for me.

Interesting.  What exactly's not working for you?

Here's an example of an iCalendar site that is good enough for Google
Calendar...

webcal://www.lugod.org/calendar/lugod-local.ics

unreliable:~# wget -Ot www.lugod.org/calendar/lugod-local.ics
--16:02:47--  http://www.lugod.org/calendar/lugod-local.ics
           => `t'
Resolving www.lugod.org... 66.218.54.136
Connecting to www.lugod.org[66.218.54.136]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,830 [text/calendar]

100%[====================================>] 2,830         --.--K/s

16:02:51 (28.51 KB/s) - `t' saved [2830/2830]

unreliable:~# cat t
BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:LUGOD
PRODID:-//Linux Users' Group of Davis//events-as-ics 2006.09.12//EN
X-WR-CALDESC:Linux Users' Group of Davis events
BEGIN:VTIMEZONE
TZID:US-Pacific
BEGIN:DAYLIGHT
TZOFFSETFROM:-0800
TZOFFSETTO:-0700
TZNAME:PDT
DTSTART:19700308T020000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=2SU;BYMONTH=3
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0700
TZOFFSETTO:-0800
TZNAME:PST
DTSTART:19701101T020000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=1SU;BYMONTH=11
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
UID:20090805T020000Z-58d96332c8cd1797ff3ec39c35f8ac63 at lugod.org
DTSTART:20090805T020000Z
DTEND:20090805T040000Z
SUMMARY:LUGOD social gathering. -- http://www.lugod.org/meeting/
END:VEVENT
...


Best Regards.
Tony




More information about the conspire mailing list