ozboomer has asked for the wisdom of the Perl Monks concerning the following question:
(..."Internet Calendaring"!? *Ugh* What a mouthful...)
I have an Android smartphone and I use MyPhoneExplorer ("MPE") on a Windows 8 desktop to manipulate the calendar(s) in the phone.
A feature of MPE is that it can export the calendar data in a few formats, being:-
I have no knowledge of processing these formats... and so, I'm looking for some pointers on how I might approach dealing with the requirements I have to process this data.
I'm hoping it makes sense to do something like:-
Magic_Processing(input_file, events_structure) for date is startdate to enddate if exists events_structure{date} event_detail = events_structure{date} further_process(date, event_detail) endif endfor
...where Magic_Processing() is "aware" of the different types of events so the pseudocode I've shown actually works. This means the function would understand about:-
...or something like that.
Simplified, I have a lot of repeating events... and I want to be able to specify a date range and have all the repeating events that will occur in that date range added to a list. Looking at the exported files, entries like:
(in an .ics file) are sort-of meaningless, straight off the bat.RRULE:FREQ=MONTHLY;BYDAY=2SA;INTERVAL=6
I understand RFC 5545 and possibly RFC 3283 are (probably?) the documents I should attack (at least, for the .ics files, which seem sort of the "most often seen"(!?))... but dealing with detailed RFCs like that is like trying to read microfilm through a mud-filled beer bottle to me... hence this request for some pointers on where to start.
(Apologies if this is sacrilege to write in the Monastery) ...even if there's some Python code I could examine which would give some clues (as I'm trying to learn this language at present)...
Thanks a heap for any thoughts or pointers.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to Extract Calendar Events in a Specified Date Range from 'Internet Calendaring' (.vcs, .ics) Files
by Corion (Patriarch) on Dec 15, 2018 at 08:57 UTC | |
|
Re: How to Extract Calendar Events in a Specified Date Range from 'Internet Calendaring' (.vcs, .ics) Files
by ozboomer (Friar) on Dec 18, 2018 at 07:54 UTC |