Re: [calsify] JSCalendar: fractional seconds

Ken Murchison <murch@fastmail.com> Mon, 10 June 2019 16:16 UTC

Return-Path: <murch@fastmail.com>
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 021EA1200CC for <calsify@ietfa.amsl.com>; Mon, 10 Jun 2019 09:16:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fastmail.com header.b=rnPYHqfN; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=EwNUbiwb
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 hdKS6Fwx8zt5 for <calsify@ietfa.amsl.com>; Mon, 10 Jun 2019 09:16:40 -0700 (PDT)
Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 31435120033 for <calsify@ietf.org>; Mon, 10 Jun 2019 09:16:40 -0700 (PDT)
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 58CDF222F1 for <calsify@ietf.org>; Mon, 10 Jun 2019 12:16:39 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 10 Jun 2019 12:16:39 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type; s=fm3; bh=WdWv+EGm9R4+wZ59hyeHx2YKd0l HuJ9TNpkKUcSczmc=; b=rnPYHqfNtyh0vWGcIaHXgndOz3t8GGYED4YeSDtF5MA vNWGTYPGYDk8aAKnpuvJ0nTPU4M78TOu74UWgtAnfrdtA81Bu93xyWTTKoigoiDi udCKYeB2BEhiK0hHR5iOqYcNPxEcCAfZAqyBRWkuo+tAuMIhAjTac2YzQoJ9aw5Y jz/5EkenbHNVup4l1PeYofxGc2o93xZfy/x5qpQOd5QX0MAUoBHcZe6POAzsfFt5 6oZcU62Msts8nKxf2XXgS1BRiE71FgCAl+uPfsDqgZe5iHKppXGBqES0/FjEaxFB no+MW6SZtGFLDQZiwZJgPkDM7WmWTD3/nsn63qmk0Fg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=WdWv+E Gm9R4+wZ59hyeHx2YKd0lHuJ9TNpkKUcSczmc=; b=EwNUbiwb6uKXufU50HN2D8 KYJn5yR9SuXZmcEzUDYXbDPBTTzcULZcJkbRIDeIXVmL3UKS6SPPwLgWI9aFMblh E1lvjyH0ODE4uf8XPu1fMrGSBl1m6tzZGS9Luht/tK5TTBPoLeY0jyRg3yWH2zIT mRJTsabSk+lxzzjzKl/5BRWrR5+axtHbWD/KPSkw4/hvfMjQgrMInGTJvCTndAHs oA+j1i36E1y1Hvm42La9ZNPkK47KhYTWYfzXrbJIWMc923KlJbI3aFuMHXX/Bk5U v7vd5paUnY/ZiDasxmrccvgvs918AMC8VE8ieoFnB1f8Sstnc98mnI9qxWIl2tEw ==
X-ME-Sender: <xms:ZoL-XE5ul2HX7B7yLbPxjpQ4uN3lz5bM5-_M8q6d3T2cnLXTTzwtEg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudehvddgleelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhfhokffffgggjggtsehmtd erredtfeejnecuhfhrohhmpefmvghnucfouhhrtghhihhsohhnuceomhhurhgthhesfhgr shhtmhgrihhlrdgtohhmqeenucffohhmrghinhepihgvthhfrdhorhhgnecukfhppeejge drjeejrdekhedrvdehtdenucfrrghrrghmpehmrghilhhfrhhomhepmhhurhgthhesfhgr shhtmhgrihhlrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd
X-ME-Proxy: <xmx:ZoL-XAOyKYEvZ9Wu-IeARVlw__iP9-w96gatCkcp3IR23ATwbSSrZA> <xmx:ZoL-XK9tBmwd7MeX4Nk9HbQKcdtHCCBhQZdemj-jVMDI-2syojnuqw> <xmx:ZoL-XH4iTHguir3LkzXl_tg3qFzAUaxs4-iNG1wPno1pIDgOq8i57A> <xmx:Z4L-XJJ_bk-d9YfzPlEAviNoyuojtoThwEuuwVLv_vmef8olIS00AQ>
Received: from localhost.localdomain (cpe-74-77-85-250.buffalo.res.rr.com [74.77.85.250]) by mail.messagingengine.com (Postfix) with ESMTPA id 8D58280068 for <calsify@ietf.org>; Mon, 10 Jun 2019 12:16:38 -0400 (EDT)
To: calsify@ietf.org
References: <b8c456ff-d350-456f-a662-d212620704ea@www.fastmail.com> <eb8ecdbc-a57b-83ec-0448-5de985e32d2a@dmfs.org> <3edec26e-1b87-4f30-97c7-d0a18cda615e@www.fastmail.com> <ce49d3f7-5e6d-4125-9ffa-2c71848f5ea8@www.fastmail.com>
From: Ken Murchison <murch@fastmail.com>
Organization: FastMail US LLC
Message-ID: <21c20d83-fceb-0d11-492a-6a54909a0413@fastmail.com>
Date: Mon, 10 Jun 2019 12:16:37 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <ce49d3f7-5e6d-4125-9ffa-2c71848f5ea8@www.fastmail.com>
Content-Type: multipart/mixed; boundary="------------63B802BC8DDCA1C1A57E3DCC"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/calsify/U6FAW37fsaNvHOfp5xatXfI9hqU>
Subject: Re: [calsify] JSCalendar: fractional seconds
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: Mon, 10 Jun 2019 16:16:43 -0000

Would it make sense to change the parameter name to SUBSECOND as its a 
known term?

This also would allow extending recurrence rules to have a matching 
SUBSECONDLY frequency if needed.  As stated early in the thread, a 
libical user wants to extend RRULE to do exactly this.


On 6/6/19 9:07 AM, Robert Stepanek wrote:
> This is a draft specification, happy about any input:
>
> 2.1.  FRACSEC parameter
>
>    Parameter name:  FRACSEC
>
>    Purpose:  This parameter is used to define fractional seconds for
>       time values and durations.  It is meant to preserve time precision
>       on time values and duration with sub-second precision, without
>       increasing the time value range within iCalendar.
>
>    Description:  This parameter MAY be specified on properties of type
>       DATE-TIME or DURATION.  The integral part of the float value MUST
>       be zero.  The value MUST NOT be negative.  iCalendar
>       implementations MAY ignore this parameter in date time arithmetic.
>       Implementations MUST ignore presence of the FRACSEC parameter on
>       RECURRENCE-ID properties when determining recurrence overrides.
>       If present on a RECURRENCE-ID property, its value MUST match the
>       FRACSEC parameter value on the DTSTART property.
>
>    Format Definition:
>
>    This parameter is defined by the following notation:
>
>                                        fracsec-param = float
>
>    Example:  DTSTART;FRACSEC=0..03:20190605T133015
>
>
>
> On Thu, Jun 6, 2019, at 1:56 PM, Ken Murchison wrote:
>> As a related topic, a libical user/developer submitted a PR to add 
>> millisecond precision to time values. I haven’t committed it because 
>> it simply changes the DATETIME values which certainly isn’t backwards 
>> compatible. I suggested a new VALUE type but even that isn’t 
>> compatible with unaware clients.
>>
>> Regardless, there does appear to be *some* desire to have fractional 
>> seconds support in iCalendar.
>>
>> --
>> Kenneth Murchison
>> Cyrus Development Team
>> FastMail US LLC
>> murch@fastmaileam.com
>>
>>
>>
>> On Thu, Jun 6, 2019, at 8:04 AM, Marten Gajda wrote:
>>>
>>> Is this parameter is meant to preserve the fractional seconds for 
>>> round-trips or are iCalendar clients encouraged to use the value?
>>>
>>> I mean, would a client that's aware of X-FRACSEC have to match 
>>> RECURRENCE-IDs ,RDATES and EXDATES taking the fractional seconds 
>>> into account?
>>>
>>> I think we should advise against that and make clear that this is 
>>> not meant to increase the precision of times in iCalendar, but 
>>> merely to preserve it.
>>>
>>> Btw, how do we cope with unaware clients doing partial updates? I.e. 
>>> a client which is not aware of X-FRACSEC adds a new 
>>> recurrence-override (not adding X-FRACSEC to RECURRENCE-ID). When 
>>> being converted back to JSCalendar, this would result in an 
>>> additional instance instead of an override.
>>>
>>> Marten
>>>
>>> Am 06.06.19 um 13:49 schrieb Robert Stepanek:
>>>> It just occurred to me that the current JSCalendar RFC draft 
>>>> ambiguously defines if fractional seconds are allowed in the 
>>>> LocalDate time type.
>>>>
>>>> To be clear: we intend to allow fractional seconds in the start 
>>>> property (and any other LocalDate property). The next version of 
>>>> the RFC draft will define this more clearly.
>>>>
>>>> Unfortunately, fractional second date-times and durations can not 
>>>> be round-tripped out of the box with iCalendar. We will define an 
>>>> iCalendar extension parameter in the informational guide for 
>>>> mapping iCalendar and JSCalendar 
>>>> (draft-ietf-calext-jscalendar-icalendar):
>>>>
>>>>   * X-FRACSEC of value type INTEGER
>>>>   * This parameter MAY be set on iCalendar properties of type
>>>>     DATE-TIME or DURATION. It MUST NOT be set more than once per
>>>>     property.
>>>>   * The value of this parameter defines the fractional seconds of
>>>>     the DATE-TIME or DURATION type.
>>>>   * This will allow iCalendar implementations  not being aware of
>>>>     this extension parameter to display the time value "good
>>>>     enough" with second precision.
>>>>
>>>>
>>>> Please let me know if you prefer another approach.
>>>>
>>>> Cheers,
>>>> Robert
>>>>
>>>> _______________________________________________
>>>> calsify mailing list
>>>> calsify@ietf.org  <mailto:calsify@ietf.org>
>>>> https://www.ietf.org/mailman/listinfo/calsify
>>>>
>>> -- 
>>> Marten Gajda
>>> CEO
>>>
>>> dmfs GmbH
>>> Schandauer Straße 34
>>> 01309 Dresden
>>> GERMANY
>>>
>>> phone: +49 177 4427167
>>> email:marten@dmfs.org  <mailto:marten@dmfs.org>
>>>
>>> Managing Director: Marten Gajda
>>> Registered address: Dresden
>>> Registered No.: AG Dresden HRB 34881
>>> VAT Reg. No.: DE303248743
>>> _______________________________________________
>>> calsify mailing list
>>> calsify@ietf.org
>>> https://www.ietf.org/mailman/listinfo/calsify
>>>
>>
>> _______________________________________________
>> calsify mailing list
>> calsify@ietf.org
>> https://www.ietf.org/mailman/listinfo/calsify
>>
>
>
> _______________________________________________
> calsify mailing list
> calsify@ietf.org
> https://www.ietf.org/mailman/listinfo/calsify

-- 
Ken Murchison
Cyrus Development Team
FastMail US LLC