Simon Wistow (deflatermouse) wrote,
Simon Wistow
deflatermouse

EXRULEs, RDATEs and EXDATEs

Implemented support for the above in Data::ICal::DateTime which means that given this bit of iCalendar

    BEGIN:VCALENDAR
    BEGIN:VEVENT
    DTSTART;TZID=Europe/London:20050804T183000
    DTEND;TZID=Europe/London:20050804T230000
    SUMMARY:London.pm social
    UID:6700873C-0409-11DA-A793-000A9599EB44
    SEQUENCE:7
    DTSTAMP:20050803T102748Z
    RRULE:FREQ=MONTHLY;INTERVAL=1;BYDAY=1TH
    RRULE:FREQ=MONTHLY;INTERVAL=1;BYDAY=TH;BYMONTHDAY=8
    EXRULE:FREQ=MONTHLY;INTERVAL=1;BYDAY=TH;BYMONTHDAY=1
    DESCRIPTION:We get drunk and talk crap
    END:VEVENT
    BEGIN:VEVENT
    DTSTART;TZID=Europe/London:20050804T183000
    DTEND;TZID=Europe/London:20050804T230000
    SUMMARY:London.pm Heretics social
    UID:6700873C-0409-11DA-A793-000A9599EB44
    SEQUENCE:7
    DTSTAMP:20050803T102748Z
    RRULE:FREQ=MONTHLY;INTERVAL=1;BYDAY=TH;BYMONTHDAY=1
    DESCRIPTION:We get *really* drunk and talk crap
    END:VEVENT
    END:VCALENDAR       

we can now generate the correct sequence of events for London.pm's hideously complicated meeting schedule.

Tags: correct sequence, datetime, ical, icalendar, london, meeting schedule
Subscribe

  • This is a call to all my past resignations

    My building, like many here in the fair City O' Fog, has a door entry system which calls a phone number - I can then buzz the door open using the…

  • You Get Me Closer To God

    And ooooooooooooh, the music puns get worse and worse. So, at work we stumbled across an interesting Perlism. Well, interesting if you're a huge…

  • All Tomorrow's Parties

    After my last bit of Calendar fiddling I was left slightly disgusted by the state of the code. In my defence it was written over the course of a…

  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments