Re: [Cbor] [EXTERNAL] Re: CBOR tag for RFC 3339 full-date values

Laurence Lundblade <lgl@island-resort.com> Wed, 11 March 2020 18:56 UTC

Return-Path: <lgl@island-resort.com>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3CB923A115B for <cbor@ietfa.amsl.com>; Wed, 11 Mar 2020 11:56:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.895
X-Spam-Level:
X-Spam-Status: No, score=-1.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 yCNRn8fsNeSS for <cbor@ietfa.amsl.com>; Wed, 11 Mar 2020 11:56:52 -0700 (PDT)
Received: from p3plsmtpa07-05.prod.phx3.secureserver.net (p3plsmtpa07-05.prod.phx3.secureserver.net [173.201.192.234]) (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 6665E3A115A for <cbor@ietf.org>; Wed, 11 Mar 2020 11:56:52 -0700 (PDT)
Received: from [192.168.1.78] ([76.167.193.86]) by :SMTPAUTH: with ESMTPA id C6XDjdwvIVFE6C6XDjL0QA; Wed, 11 Mar 2020 11:56:52 -0700
X-CMAE-Analysis: v=2.3 cv=aJiOVo1m c=1 sm=1 tr=0 a=t2DvPg6iSvRzsOFYbaV4uQ==:117 a=t2DvPg6iSvRzsOFYbaV4uQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=48vgC7mUAAAA:8 a=yMhMjlubAAAA:8 a=gKmFwSsBAAAA:8 a=DJVM3KTjAAAA:8 a=I0CVDw5ZAAAA:8 a=9iNY4oMFKxKMKoEu75AA:9 a=UGs9-W9-5jXaKDlP:21 a=WQttM2v-UL960qre:21 a=QEXdDO2ut3YA:10 a=Unaa3BaWtZcA:10 a=CUE2eSOWeB8A:10 a=w1C3t2QeGrPiZgrLijVG:22 a=nnPW6aIcBuj1ljLj_o6Q:22 a=jRQN-ld2qtESDXB7g7zv:22 a=YdXdGVBxRxTCRzIkH2Jn:22
X-SECURESERVER-ACCT: lgl@island-resort.com
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
From: Laurence Lundblade <lgl@island-resort.com>
In-Reply-To: <CH2PR00MB0678D2057CEA99E7431C5225F5FC0@CH2PR00MB0678.namprd00.prod.outlook.com>
Date: Wed, 11 Mar 2020 11:56:51 -0700
Cc: Carsten Bormann <cabo@tzi.org>, "\"Richter, Jörg\"" <Joerg.Richter@pdv-FS.de>, "cbor@ietf.org" <cbor@ietf.org>, Anthony Nadalin <tonynad@microsoft.com>
Content-Transfer-Encoding: quoted-printable
Message-Id: <352FBB13-09FB-4998-8646-FC8FE51392FA@island-resort.com>
References: <CH2PR00MB0679818FABC93C37FF88A404F5E40@CH2PR00MB0679.namprd00.prod.outlook.com> <AB18584F-BA25-464E-8DEC-217067D7643E@tzi.org> <282209381d8b4a8b8e77515142266df2@pdv-FS.de> <DD66072D-5319-49D7-85A0-F6F2D354A52D@tzi.org> <5D27981B-81C8-43C0-A229-66343D9D67B4@tzi.org> <CH2PR00MB0678D2057CEA99E7431C5225F5FC0@CH2PR00MB0678.namprd00.prod.outlook.com>
To: Mike Jones <Michael.Jones=40microsoft.com@dmarc.ietf.org>
X-Mailer: Apple Mail (2.3445.104.11)
X-CMAE-Envelope: MS4wfPqyxlDdrAgoXV+PBNdpbkV04mMXP9oJdONDjD9TDFZx7NSW9hbTjqmhbwRBiz4A/BRJJbNlAjeIcylwEA4VIILFFsYtRQmokvX9jnqw2T1DcPsWMCon Iso0dIFxM7qse57ymKYk/pNb54EC6RpG4zRHodSZ/a1YzBJGBOudCPcH2XPSC2JS4VHdbvtYq2GF4V+eQgYdOHPO/uRkeZhzi7voPdcyw1F4v+B/ZmIAVkiM VaIlh/e5+BQv1zVa+vTy9NvdfXHgtoYooJJHeMCcOHiLkRv+aKDNcM+CL7X5lLHHo9rWiaVpbrWYNLJ3FSfcRQ==
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/f0mzme0-Yr6i2RIyLx_QDCFKktA>
Subject: Re: [Cbor] [EXTERNAL] Re: CBOR tag for RFC 3339 full-date values
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Mar 2020 18:56:54 -0000

I’d suggest the numeric date be restricted to integers. No floats, bignums, decimal fractions… Fractions of days can be represented by tag 0 or tag 1 using hours, minutes, seconds. 64-bit integer counts of days are large enough.

LL


> On Mar 11, 2020, at 9:57 AM, Mike Jones <Michael.Jones=40microsoft.com@dmarc.ietf.org> wrote:
> 
> I'm fine merging Jörg's numeric date tag into my draft, provided that the result is not a polymorphic tag, in which the value could be either a number or a string.  We should allocate separate tags for string date and numeric date, just as tags 0 and 1 are different, and not polymorphic.
> 
> If this works for everyone, I'll add the numeric date tag with proposed value 'd' into my draft.
> 
> 				-- Mike
> 
> -----Original Message-----
> From: CBOR <cbor-bounces@ietf.org> On Behalf Of Carsten Bormann
> Sent: Wednesday, March 11, 2020 9:51 AM
> To: "Richter, Jörg" <Joerg.Richter@pdv-FS.de>; Mike Jones <Michael.Jones=40microsoft.com@dmarc.ietf.org>
> Cc: cbor@ietf.org; Anthony Nadalin <tonynad@microsoft.com>
> Subject: [EXTERNAL] Re: [Cbor] CBOR tag for RFC 3339 full-date values
> 
> Hi Joerg, Mike,
> 
> we discussed the date tag proposals at the CBOR interim today.
> The meeting consensus was that we should merge the date tag part of Joerg’s specification (i.e., both textual and numeric date references) with Mike’s draft, and spend a 1+1 tag (which would indeed conveniently be tag 100 = ‘d’).
> 
> I would like to work with the two of you to generate a -01 of Mike’s draft with text from Joerg, for discussion on May 25th (or whatever replacement we find for the physical IETF107 meeting.)
> 
> (We would look at time-of-day and timezone right after registering the date tag from -01; maybe in a -02.  My personal view would be that the time-of-day tag from Joerg would go right in, but we might want to go for a 1+2 tag for timezone [29818 for ’tz’ maybe?].  But let’s discuss this when we are there.)
> 
> Is that a good way forward?
> 
> Grüße, Carsten
> 
> 
>> On 2020-03-11, at 16:25, Carsten Bormann <cabo@tzi.org> wrote:
>> 
>> Hi Joerg,
>> 
>> I’m sorry we didn’t handle your requests properly.
>> Let’s try to fix this now.
>> 
>>> On 2020-03-04, at 08:42, Richter, Jörg <Joerg.Richter@pdv-FS.de> wrote:
>>> 
>>> Hi,
>>> 
>>>> The need for a date (not time) tag has come up before; I just can’t remember where.
>>> 
>>> One year ago I sent a proposal für a date tag [1].
>>> So far it has not made it into the overview of the assigned CBOR-tags [2].
>>> 
>>> I would very much appreciate if the suggested tag number is used for the date-tag, since we already use it internally.
>> 
>> What I like about Mike’s draft is that he references RFC 3339, which already is an established specification for how to write dates textually.  For that half of the proposal, I don’t think there is a technical difference with your proposal (except that Mike suggested a different tag number).  Beyond Mike’s draft, we would need to decide that we like to use the same tag with an epoch-based numeric date.  I think this is OK; it just requires users of the tag to specify which of the internal structures (or both) they would accept.  Note that we are running into the same issue with tag 1 (as used in EAT in the RATS WG), so that may help accepting that this is a normal thing to so.
>> 
>>> What is missing for the suggested tag numbers to be assigned?
>> 
>> I think we just have to make the decision to spend the 1+1 (short) tag.
>> That becomes somewhat easier with including the numeric date, because that is indeed quite compact and merits a short tag.
>> 
>>> Btw. I have another proposal for currencies and money amounts at [3] whose tags were not assigned either.
>> 
>> Let’s get to that, too, right after we are done with the date tag.
>> 
>> Grüße, Carsten
>> 
>> 
>>> - Jörg
>>> 
>>> [1] https://j-richter.github.io/CBOR/date.html
>>> [2] https://www.iana.org/assignments/cbor-tags/cbor-tags.xhtml
>>> [3] https://j-richter.github.io/CBOR/currency.html
>>> 
>> 
> 
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor