emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Inquiry about ical2org


From: John Hendy
Subject: Re: [O] Inquiry about ical2org
Date: Thu, 26 May 2016 15:04:08 -0500

On Thu, May 26, 2016 at 3:00 PM, John Hendy <address@hidden> wrote:
> On Thu, May 26, 2016 at 2:49 AM, Eric S Fraga <address@hidden> wrote:
>> On Wednesday, 25 May 2016 at 20:33, John Hendy wrote:
>>> I found ical2org, and implemented it successfully via the "Share
>>
>> Which ical2org is this?  If it's the awk script I wrote originally, the
>> repeat handling was written with the assumption that there would be no
>> end date for the repeat as org cannot handled end dates for repeated
>> items.
>
> Whoops -- yes, the awk script. Sorry, now I'm remembering there was a
> ruby version as well.
>
> Here's an example of a recurring meeting I see:
>
> RRULE:FREQ=MONTHLY;UNTIL=20161114T150000Z;INTERVAL=1;BYDAY=2MO
> DTSTART;TZID=Central Standard Time:20160613T090000
> DTEND;TZID=Central Standard Time:20160613T103000
> DTSTAMP:20160526T195005Z
>
> I'm no awk expert, but I think I make out what's going on... the
> #repetition rule section extracts (among others) the freq (monthly)
> and interval (1) to build a repeater (+1m), though  and rrend using
> the "until" field.

Bah... sorry about that! Accidental tab right before a space sends away!

Anyway, the point is that the repeater is built if there's any
repetition frequency/interval. You also capture the "until" into
rrend. So, the first date is going to feature a +unit, and this code
adds the end:

        else if (rrend != "")
            date = date ">--<" rrend

I just commented out both sections that add a "-- <date2>", the other
checking for time2 being "". Is that the correct way to go about this?

If so, no need to update. I'll just leave those commented out.

Out of curiosity, how *is* the rrend code supposed to be handling
these? Or what's the use case for building a <date1 +unit>--<date2>?


Thanks!
John


>>
>> I can try to fix this in the awk script by simply ignoring end dates in
>> such cases.  Let me know.
>>
>> --
>> : Eric S Fraga (0xFFFCF67D), Emacs 25.0.93.1, Org release_8.3.4-775-g3308a5



reply via email to

[Prev in Thread] Current Thread [Next in Thread]