Re: [calsify] JSCalendar duration vs. end time

Дилян Палаузов <dilyan.palauzov@aegee.org> Fri, 08 March 2019 19:37 UTC

Return-Path: <dilyan.palauzov@aegee.org>
X-Original-To: calsify@ietfa.amsl.com
Delivered-To: calsify@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9A0C612799B for <calsify@ietfa.amsl.com>; Fri, 8 Mar 2019 11:37:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (4096-bit key) header.d=aegee.org
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3_SaMb5WUTM9 for <calsify@ietfa.amsl.com>; Fri, 8 Mar 2019 11:37:58 -0800 (PST)
Received: from mail.aegee.org (mail.aegee.org [144.76.142.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C98C8127978 for <calsify@ietf.org>; Fri, 8 Mar 2019 11:37:57 -0800 (PST)
Authentication-Results: mail.aegee.org/x28JboLj018846; auth=pass (PLAIN) smtp.auth=didopalauzov
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aegee.org; s=k4096; t=1552073871; i=dkim+MSA-tls@aegee.org; r=y; bh=m3U4YkfTuqiK8cF/Nu/u7igxFm6mJ92xat3jVSpme0E=; h=Subject:From:To:Date:In-Reply-To:References; b=HGmetgasvm+2QYTdx8ysA91/6c5E4lhv+vzwlgOOnEvEjLx5+jMhgd/Hj/SuuWl6f IlPIy8CKAW/Yw3WERE4AlJKMZdKQ6vPdZmDqbT6w7cn0JwkgkcGGwplEMJpqa5jxFR qxirA31Fhg47H8TP+9TVCjC4IEdCSLJ+JeFUWO/p3T+frXGwm/DNAslU7C8oMJX/WV si9TZLbsD7cMrygqqZSASJGUrNcS4Kn3wueCE9En8RqF0MeWnedHd8tCR6L6qm7fYP xV11x9vlcy0HKzCH2z5EdARssJ1w4Kt3AE5cmmMZTDEA+rFi/RKJgpBlC+bkytPf/9 Pdh/QtL77GzveqGHC4vLbheocxPdmkRpi/7lVaP/y6C/oQqtg7dbI7jzaHauWv5POY JfrT/x9dnApRY220jW92FD82HOCNa8OLjYzgHa0CKkt2+2Z6+G1qGYTYJKHa5Eh5ri cnenotUGNvEzgWvRoDGOyYOaRCSla6t62cbtBN3YP6aquq5ezz6KsmzoNiGKHkHf3v pYK0F8IF/ZfeIP+R9crH/nnXVfdqMcWkHWL45tJAj9JGCJIocnpJ67uA0PyumSqLPi OQdf1xRJLAlaCJTnLy50klCElswZUnfbrd0+g6PptY0PfUCrz8IUIlB4XyKQFNj89y czrM70dvyLSOXRt22D70vwEM=
Authentication-Results: mail.aegee.org/x28JboLj018846; dkim=none
Received: from Tylan (87-118-146-153.ip.btc-net.bg [87.118.146.153]) (authenticated bits=0) by mail.aegee.org (8.15.2/8.15.2) with ESMTPSA id x28JboLj018846 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 8 Mar 2019 19:37:50 GMT
Message-ID: <53c5912a8b973aeb0ab67a0d8b7ed0072c5f23b7.camel@aegee.org>
From: Дилян Палаузов <dilyan.palauzov@aegee.org>
To: Robert Stepanek <rsto@fastmailteam.com>, calsify@ietf.org
Date: Fri, 08 Mar 2019 19:37:50 +0000
In-Reply-To: <1550160126.3602072.1658018976.28709BD3@webmail.messagingengine.com>
References: <1550160126.3602072.1658018976.28709BD3@webmail.messagingengine.com>
Content-Type: text/plain; charset="UTF-8"
User-Agent: Evolution 3.31.92
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.101.1 at mail.aegee.org
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/calsify/jjtMk53Yu0ZgmaElMG8retv1CcY>
Subject: Re: [calsify] JSCalendar duration vs. end time
X-BeenThere: calsify@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <calsify.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/calsify>, <mailto:calsify-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/calsify/>
List-Post: <mailto:calsify@ietf.org>
List-Help: <mailto:calsify-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/calsify>, <mailto:calsify-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 08 Mar 2019 19:38:00 -0000

Hello,

imagine you book a room for 3:45 hours, and want to have there a session “Topic A” for one hour, a 0:15 hours for
coffee-break and then a session “Topic B” for two hours.  You map this in iCalendar/CalDAV as (imprecise syntax):

--
DTSTART: 8am
DTEND: 9am (or if you prefer DURATION: 1h) 
SUMMARY: Topic A
UID: 1
--
DTSTART;RELTYPE=FINISHTOSTART;REL-TO=UID:1 (per https://tools.ietf.org/html/draft-ietf-calext-ical-relations - the start
is defined as the end of the other event)
DURATION: 15minutes
SUMMARY: Tee time
UID: 2
--
DTSTART:RELTYPE=FINISHTOSTAR;REL-TO=UID:2
DTEND: 11:45am
SUMMARY: Topic B
UID: 3
--

So far so good.

Now, imagine the first session get longer as expected, e.g. 75 minutes.  The last session has to end in 11:45am, because
the room is booked only until then.  Under circumstances, the only event that needs to be updated is the first one, and 
the rest of the agenda will magically align, provided draft-ietf-calext-ical-relations makes progress.

In this case, for UID:2 you have to use DURATION and for UID:3 you have to use DTEND → Both are needed.

Regards
  Дилян

On Thu, 2019-02-14 at 17:02 +0100, Robert Stepanek wrote:
> During CalConnect XLIV in Zurich last week, discussion arose if the JSCalendar duration property is enough to define the time span of an event, or if an end time should be allowed as well (see the latest spec here).
> 
> Two arguments were raised in favor of adding an end time
> It simplifies translation of VEVENTs with DTSTART/DTEND from iCalendar.
> It allows to specify recurring events with a fixed end time even in case of time gaps (e.g. a recurring night club that has to close at a fixed time for legal reasons).
> 
> Our main concerns with adding an end time are:
> Having two representations to define an event time span adds complexity. This contradicts the stated goals of JSCalendar.
> Translation of DTSTART/DTEND to duration for one-time events is in almost all cases trivial. It does not require to rewrite existing calendar data.
> The "night club scenario" isn't covered by iCalendar either, as the same exact duration of a recurring even with DTEND must be applied to all members of the generated recurrence set (see RFC 5545, section 3.8.5.3). If anything, this scenario speaks for a new parameter on the RRULE.
> Durations are guaranteed to be zero or positive, which makes it harder to produce invalid events.
> 
> As it currently stands we therefore see no need for an end time property. Please let us know if you disagree.
> 
> Thanks,
> Robert
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> calsify mailing list
> calsify@ietf.org
> https://www.ietf.org/mailman/listinfo/calsify