Search code examples
icalendarduration

iCal: duration vs dtend?


There seem to be two ways to define the end of an event in iCal. One by using duration and the other one by using dtend. Do either of them have any benefits over the other? I can't find any info other then that dtend seem to override duration.


Solution

  • If you have an event and change the 'dtstart', the end time of the event;

    1. should not change if you specify 'dtend'
    2. should shift if you specify 'duration'

    RFC5545 says

    ; either 'dtend' or 'duration' may appear in
    
    ; a 'eventprop', but 'dtend' and 'duration'
    ; MUST NOT occur in the same 'eventprop'