[calsify] JSCalendar: fractional seconds

"Robert Stepanek" <rsto@fastmailteam.com> Thu, 06 June 2019 11:49 UTC

Return-Path: <rsto@fastmailteam.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 529201200F9 for <calsify@ietfa.amsl.com>; Thu, 6 Jun 2019 04:49:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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=fastmailteam.com header.b=gzk1ZOt6; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=JQ/xSMzq
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 75sD47CrjhZI for <calsify@ietfa.amsl.com>; Thu, 6 Jun 2019 04:49:42 -0700 (PDT)
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 4134E1200F1 for <calsify@ietf.org>; Thu, 6 Jun 2019 04:49:42 -0700 (PDT)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 541CF21FB5 for <calsify@ietf.org>; Thu, 6 Jun 2019 07:49:41 -0400 (EDT)
Received: from imap7 ([10.202.2.57]) by compute1.internal (MEProxy); Thu, 06 Jun 2019 07:49:41 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= fastmailteam.com; h=mime-version:message-id:date:from:to:subject :content-type; s=fm2; bh=nfc87AYrHMhJ+DFO/oilytUZV7lJWClo5iz/G0o Q0NM=; b=gzk1ZOt6Bs0Iu9um644pwcYchR+nQLqICddQ82aFlBsL06g1IAFhX07 NtnY4InMgZPyjYHSF7VQOgCiepRTHELLss8Wr5Tp638dGcrO20AblgR8AyPyAeu9 NQ8wD201JU9KFfsBGDqtnQSuyHQlvuRgh0mscdyjMzUrpce8aGC22e+IUmM4BQUg WLB+PeJWdpDGj4ZhSLA7klmzlLGM1BRhil/5UdLjGv5uAU3N3JUZEvFOa9etj8Yx NatF9Hn0iqX/dmnf5MxW0/epff9KfcYZGn57qPXTCoKxS0FWWlepQef+or8Ce/SV XfS1kS/bVX5EigJfXWX+1uq6w0iUKuw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=nfc87AYrHMhJ+DFO/oilytUZV7lJW Clo5iz/G0oQ0NM=; b=JQ/xSMzq1NQgBlb6B7y7OwctUFJI9GPp2LUomhcIXnYgw w6FSLS9dDRzDHoJRoFPRGN9FhU2onAypv8u3Jq/nWkOpaTL8pMdaJwJN9HwQXgNT PdlPYNhILbNhAkM1dUsTNA5TmW5QCAgSQXPEoBfY0d5ebPbSauin7nqu55vOz6kL mchNOspoDMiK3kUK5vlSt8Tky0A0knHQyaLx0EHU4PIElKGdJ2DQbIQ5rpTRBHsu 89gBowL6wVUnpPCvsjjuH7HiW15karJlDa5q5aP0Rss1aKwWu9kDi9cNEbtfmcRC xEOvd22IyMlXMKR7fL8jCFZBsa95LATBYSJijdQNg==
X-ME-Sender: <xms:1P34XNPS_fpoANR0OcdzqwSfdVqSRfWwqTVtcwG4ogBUxh4Vu6yTKw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudeggedggeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsegrtderre erredtnecuhfhrohhmpedftfhosggvrhhtucfuthgvphgrnhgvkhdfuceorhhsthhosehf rghsthhmrghilhhtvggrmhdrtghomheqnecurfgrrhgrmhepmhgrihhlfhhrohhmpehrsh htohesfhgrshhtmhgrihhlthgvrghmrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd
X-ME-Proxy: <xmx:1P34XENLJd_VCECCcfL6hPtkji3qCGlDwq5Z5bPy7Q2cBen5QHJZpA> <xmx:1P34XHQq7sFoDwQ-9LTKOOhtHgyQNwaZ5l19ITgm8z-NXt189jPFOg> <xmx:1P34XOBUe1Y9GHwVHumvfmYmycH3JoYTAA6vBTQyqMxkqGk9JbWFzQ> <xmx:1f34XF0zdj75tn6030gAZNctBe_zkxI8zP_vXI11GBF0Rn7AypW8rw>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id BD1211801DD; Thu, 6 Jun 2019 07:49:40 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.1.6-662-gd87dd0f-fmstable-20190606v1
Mime-Version: 1.0
Message-Id: <b8c456ff-d350-456f-a662-d212620704ea@www.fastmail.com>
Date: Thu, 06 Jun 2019 12:49:40 +0100
From: Robert Stepanek <rsto@fastmailteam.com>
To: calsify@ietf.org
Content-Type: multipart/alternative; boundary="f3f70d40b0944c2881fafc1317e5469a"
Archived-At: <https://mailarchive.ietf.org/arch/msg/calsify/7cJqmX8YutkHO46vFVX9vmgMTdE>
Subject: [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: Thu, 06 Jun 2019 11:49:44 -0000

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