Re: [calsify] JSCalendar: fractional seconds

Ken Murchison <murch@fastmail.com> Mon, 10 June 2019 16:23 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 28B1E120128 for <calsify@ietfa.amsl.com>; Mon, 10 Jun 2019 09:23:45 -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=lsyWfBvI; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=dojHWLun
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 22ZldrLOxVW6 for <calsify@ietfa.amsl.com>; Mon, 10 Jun 2019 09:23:42 -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 BACCD120033 for <calsify@ietf.org>; Mon, 10 Jun 2019 09:23:42 -0700 (PDT)
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id F0DFD22116 for <calsify@ietf.org>; Mon, 10 Jun 2019 12:23:41 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 10 Jun 2019 12:23:41 -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=Dq5cuSzwbiJDpfblNNiKk3uEXbI L9snmH6rp+RG0KI4=; b=lsyWfBvI2piiW4WBJ0uROUvqNkDmVvuCMyqI5Vs3GH4 K1frDKwH2fflk2j8x23tqvOAmi7R33Agy7yREmKS8JbsEnrBL4ASdhEZ27XjXHy2 Pm0rHhtLqsz3O7/yJPvETEszKVvMvccl0YCjx+IyVldknKTu35obOtZ+Z+yrFg2D ivnT+YZIfmeTW07JPTaO+RA16WZbGyZLIUFQPN7Y6MYINdSefZNDbDYr3Br24doc i55TmGJVgU/ZVaDCmep5s+MnRG/t+PP9gW1BRbXA7Zs3yBdTBVEDCwNK+cyR6hpT dL9G1ZbN3pgBn48P0kVB6C5EujvlaA/vGKHV0ePCHRQ==
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=Dq5cuS zwbiJDpfblNNiKk3uEXbIL9snmH6rp+RG0KI4=; b=dojHWLunKibtXW+s1bxKhB cTRaNGl6pHQeAB2IgM3Wodyi7PlPdL35qo8t1LTJKtIEYZBs4b68Yn2h3MP3h8b0 BBaxDfFBe9KD+aNJl0Hz35AmqsZ6je/bGdbUUKmQPvgZVeyDw+z79p/MXyKATpYY iHOcwt8ADP5di0gQEyRugejs0Fl7Qu7uMT9zE9inzYC7r7YMj4Kg3nIqBwLGSe0Y uYryfqOR+K1jkbTbdF8uxMDUcyLFlraLEMXbhU7LS2W6BSCLWsZ63Ium7N8wE+QU 26mDFpJcVrD0xiHh4Lvz10QYZORKk+Jatug40Y9neGe7QPZ/22yWFD5cNpZWOsng ==
X-ME-Sender: <xms:DYT-XEy5T5uHG5cGy0nt3v5XnIvhqEeQxLnyc5PyASh7Ir5vqTvukA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudehvddguddttdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhohfkffgfgggjtgesmh dtreertdefjeenucfhrhhomhepmfgvnhcuofhurhgthhhishhonhcuoehmuhhrtghhsehf rghsthhmrghilhdrtghomheqnecuffhomhgrihhnpehivghtfhdrohhrghenucfkphepje egrdejjedrkeehrddvhedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmuhhrtghhsehf rghsthhmrghilhdrtghomhenucevlhhushhtvghrufhiiigvpedt
X-ME-Proxy: <xmx:DYT-XMEBMcPlxYZwIhEOUo2vuQaoLxi8MDSgozI_kl5aNLwcR-E6zg> <xmx:DYT-XPaEqnFfuooRT1MNnVfVfE4UqW83zBwX_EkIafKEFKWHy3Y2Kg> <xmx:DYT-XGD8sfNgiPDde-z4ZrdmZgJQm__cisNr_MIy4-0UB3A6PPPv6w> <xmx:DYT-XP-L08E3W1vdEgVdNVosoDy2_fIBzIDeBkoEN8_nnRPWXfgs3Q>
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 3BF4880059 for <calsify@ietf.org>; Mon, 10 Jun 2019 12:23:41 -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> <21c20d83-fceb-0d11-492a-6a54909a0413@fastmail.com>
From: Ken Murchison <murch@fastmail.com>
Organization: FastMail US LLC
Message-ID: <6c3ed5d3-4d66-3ec5-3808-ca44efe367d4@fastmail.com>
Date: Mon, 10 Jun 2019 12:23:40 -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: <21c20d83-fceb-0d11-492a-6a54909a0413@fastmail.com>
Content-Type: multipart/mixed; boundary="------------9581F9694226C3BA92048EB9"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/calsify/CWZggIqSa8B7ja0c95cs3NvsqYI>
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:23:45 -0000

On 6/10/19 12:16 PM, Ken Murchison wrote:
>
> 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.
>
Hmm, but since INTERVAL is an integer, we would have to specify the 
scale for subseconds (milli, micro, pico, nano?)  Or we allow 
MILLISECONDLY, etc as frequencies.


> 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
>
> _______________________________________________
> calsify mailing list
> calsify@ietf.org
> https://www.ietf.org/mailman/listinfo/calsify

-- 
Ken Murchison
Cyrus Development Team
FastMail US LLC