Re: [calsify] draft-ietf-calext-jscalendar-icalendar-02

Ken Murchison <murch@fastmail.com> Mon, 21 December 2020 12:42 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 17A333A0F46 for <calsify@ietfa.amsl.com>; Mon, 21 Dec 2020 04:42:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, NICE_REPLY_A=-0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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=GgE1YF7V; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=KKtDTt4J
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 z7NUT7q1ue-N for <calsify@ietfa.amsl.com>; Mon, 21 Dec 2020 04:42:03 -0800 (PST)
Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 166DC3A0F41 for <calsify@ietf.org>; Mon, 21 Dec 2020 04:42:03 -0800 (PST)
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 697215C00AA for <calsify@ietf.org>; Mon, 21 Dec 2020 07:42:02 -0500 (EST)
Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 21 Dec 2020 07:42:02 -0500
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=fm1; bh=gwtBKYtN9/4wWQDDFF941e0RUpB Muuxf37nqoTsCnrc=; b=GgE1YF7VidK5rCScJyyZdGQdZJ4IGHX+hL1Y/ZAYgfB 2TVXrVM1Dt+e9KNE8/mP/JUreU0SVXJze/IU1ld12kJn4yI1aSAkKdI6MNzpZTmX cdHY/heEdSbfJTj+4+XGSQ+OjTl0HNp1+og7cU1Efn4s/49tt58Fwrb3RPojXHps LToJM1GaB41+KncKd+9FXwClJr89849hftTryEmJ9lMb5Jb2TJR+NAQnaFBpN6Em H+JV7tFvNn1OIMbvaKcw3O3P8CVBLFYnq2QbrkYjL/jo0t+zjPcsJIKgtP5i213r wcuqLlwqiaMIjW7MvfQshX/Lf8APGjkJxXXuPFqnkhw==
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=fm1; bh=gwtBKY tN9/4wWQDDFF941e0RUpBMuuxf37nqoTsCnrc=; b=KKtDTt4JOCh8hCsjNfCfy5 UvGg+235g4qyG2aFrJBlCDYNRFC2Ar6JL3qcF9LfI5Aa39sfubulWyBXaD7FOUsN 8bZ+2nuAqRQBvobD9RRHU0KP2dBOU1NI3fZUk9nk9YQBaRn3bYv1LT9lJyMm9v+t RH4ny8iRER5mx6iiXajZ4/WMdM+3Zb8+C1VLK4B7nxcVuNCCey+hvHiP7e2aNJ6v 2J2UTTC/Zhk4EYVC7yD2UjHfeowhXahWt/YXWQJuzBtOreu0iN3BU8xBloZIrV5p FG5cUoXmdFwFMvmV1CXppr7aMOsNIG5FnN7//o175ZO9+Rql5vB+ZdCe7PtedyIg ==
X-ME-Sender: <xms:GpjgX_fKgW-r6TprMF41hKbc-UQLmMkq3weo-cw8JuBBVY3DdU_GcQ> <xme:GpjgX1NxR6xz7LFxoDfUJXa0LJXyEjeQzcH6W_JgtjDRTv9KF7Jo1NpVrWRGRyBje M6CguYnR7TI2A>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddtvddggeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgesrgdtre ertdefjeenucfhrhhomhepmfgvnhcuofhurhgthhhishhonhcuoehmuhhrtghhsehfrghs thhmrghilhdrtghomheqnecuggftrfgrthhtvghrnhepffeuhfevgffgvdduuedvteeije euvddvkedugeegvdffvefgudffueeileeggeegnecuffhomhgrihhnpehivghtfhdrohhr ghenucfkphepjeegrdejjedrkeehrddvhedtnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhurhgthhesfhgrshhtmhgrihhlrdgtohhm
X-ME-Proxy: <xmx:GpjgX4gqIPTb6YVCIW_zQlH51J56Z-SxQXpuoy223MzNp1C-ax_ZmA> <xmx:GpjgXw-4K0L3I3bownAFlcgbMLzmkmzCDpTNjLzUuYEYfke6vd02_w> <xmx:GpjgX7ucEmCF7wBa7hrB2sT9xBGZIy2mmbVnTA_exR1wzM3358dkOw> <xmx:GpjgX579zUcLjZGbmuO6K2_nV4euazMNLTAJa8wUoiePVUHXRSVclQ>
Received: from [192.168.1.22] (cpe-74-77-85-250.buffalo.res.rr.com [74.77.85.250]) by mail.messagingengine.com (Postfix) with ESMTPA id EBCDC240064 for <calsify@ietf.org>; Mon, 21 Dec 2020 07:42:01 -0500 (EST)
To: calsify@ietf.org
References: <57f81335-b7a9-6a9f-df5f-bab580689a33@fastmail.com> <bedb37af-67f1-17d0-b785-c4c9a27418e0@gmail.com> <9595a7c0-2fb8-4e68-cd45-ce97bc13532f@fastmail.com> <6eb94ffd-2d3f-4e42-88bb-ef352495351d@www.fastmail.com>
From: Ken Murchison <murch@fastmail.com>
Message-ID: <385d8dec-09ce-8884-d9cc-0eeb792d692e@fastmail.com>
Date: Mon, 21 Dec 2020 07:42:01 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0
MIME-Version: 1.0
In-Reply-To: <6eb94ffd-2d3f-4e42-88bb-ef352495351d@www.fastmail.com>
Content-Type: multipart/alternative; boundary="------------9C6A0FB579D787F24730C0DB"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/calsify/ncu_CW9po3orwgRGv8TYbmejiBc>
Subject: Re: [calsify] draft-ietf-calext-jscalendar-icalendar-02
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, 21 Dec 2020 12:42:06 -0000

On 12/21/20 7:31 AM, Robert Stepanek wrote:
> As noted in my previous email: we already agreed to not set the 
> complete timestamp in the FRACTIONAL parameter value.
>
> Instead we will set a SUBSECONDS parameter which will be defined to a 
> FLOAT value with MUST be positive and less than 1.0.


OK, but if it MUST be positive, don't we still have the issue that Mike 
brought up regarding rounding?  Or we will state that the property value 
MUST NOT be rounded up.



>
> On Mon, Dec 21, 2020, at 1:17 PM, Ken Murchison wrote:
>>
>> Hi Mike,
>>
>>
>> On 12/21/20 12:09 AM, Michael Douglass wrote:
>>>
>>> On 12/19/20 13:50, Ken Murchison wrote:
>>>>
>>>> All,
>>>>
>>>> I just had cause to consult jscalendar-icalendar Section 2.1 
>>>> </mail/draft-ietf-calext-jscalendar-icalendar-02?u=e4d9409a> and I 
>>>> have a couple of issues:
>>>>
>>>>  1. Why is this value specified to be the entire date-time plus
>>>>     fractional seconds?  Wouldn't the fractional seconds be sufficient?
>>>>  2. The definition of the parameter is incorrect:
>>>>      1. It doesn't include the game of the parameter in the definition
>>>>      2. The value isn't DATE-TIME or DURATION, its value is an
>>>>         extension of date-time.  If keeping a full time
>>>>         representation it should be something like "date-time "."
>>>>         1*DIGIT
>>>>
>>> 1.This was my suggestion - way back in April
>>>
>>> As I recall my main problem with the previous approach - which was 
>>> just the fractional part - was that it led to ambiguities and having 
>>> to define how the full value was rounded to produce the truncated 
>>> iCalendar value. Having the full value means you just choose to use 
>>> either the (possibly adjusted) property value or the (possibly more 
>>> accurate) FRACTIONAL parameter value. No processing or worrying 
>>> about edge cases.
>>>
>>
>> Now that you refreshed my memory, I do recall this discussion.  If we 
>> allow the fractional part to be positive OR negative, doesn't this 
>> solve the rounding problem?  If the full value is rounded with value 
>> R, the fractional part can be set to -R.
>>
>>> 2. I think FRACTIONAL can be used for DURATION as well as as for 
>>> DTSTART and the abnf is wrong anyway. We have
>>>
>>> fractional-param = DATE-TIME or DURATION
>>>
>>> shouldn't it be something like
>>>
>>> fractional-param = "FRACTIONAL" = (date-time | dur-value) ["." 1*DIGIT]
>>> ; Value is extended date-time when used with the DTSTART property
>>> ; Value is extended dur-value when used with the DURATION property
>>
>>
>> If we're going to keep FRACTIONAL as being the full value, we will 
>> have to be more creative with the ABNF because date-time has 
>> [time-utc] as its last component, and for durations, we probably only 
>> want/need the fractional part when the duration includes dur-second.  
>> So perhaps:
>>
>> fractional-param = "FRACTIONAL" "=" (date-time-frac / dur-frac)
>>
>> date-time-frac = date "T" time-frac
>>
>> time-frac = time-hour time-minute time-second frac-sec [time-utc]
>>
>> frac-sec = "." 1*DIGIT
>>
>>
>> dur-frac = (["+"] / "-") "P" dur-day dur-time-frac
>>
>> dur-time-frac = 1*DIGIT "H" 1*DIGIT "M" dur-second frac-sec
>>
>>
>> Having gone through this exercise, I think it would be a lot simpler 
>> to just do:
>>
>> fractional-param = "FRACTIONAL" "=" (["+"] / "-") "." 1*DIGIT
>>
>> -- 
>> Kenneth Murchison
>> Senior Software Developer
>> Fastmail US LLC
>> _______________________________________________
>> calsify mailing list
>> calsify@ietf.org <mailto:calsify@ietf.org>
>> https://www.ietf.org/mailman/listinfo/calsify 
>> <https://www.ietf.org/mailman/listinfo/calsify>
>>
>
>
> _______________________________________________
> calsify mailing list
> calsify@ietf.org
> https://www.ietf.org/mailman/listinfo/calsify

-- 
Kenneth Murchison
Senior Software Developer
Fastmail US LLC