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

Carsten Bormann <cabo@tzi.org> Wed, 11 March 2020 16:50 UTC

Return-Path: <cabo@tzi.org>
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 971233A0D8D for <cbor@ietfa.amsl.com>; Wed, 11 Mar 2020 09:50:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable 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 Y1ZKlIovyaGk for <cbor@ietfa.amsl.com>; Wed, 11 Mar 2020 09:50:41 -0700 (PDT)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6014D3A0D8A for <cbor@ietf.org>; Wed, 11 Mar 2020 09:50:41 -0700 (PDT)
Received: from [172.16.42.113] (p548DCD70.dip0.t-ipconnect.de [84.141.205.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 48cydC2BrZzyRp; Wed, 11 Mar 2020 17:50:39 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <DD66072D-5319-49D7-85A0-F6F2D354A52D@tzi.org>
Date: Wed, 11 Mar 2020 17:50:38 +0100
Cc: "cbor@ietf.org" <cbor@ietf.org>, Anthony Nadalin <tonynad@microsoft.com>
X-Mao-Original-Outgoing-Id: 605638238.7303801-e8adbe4f48305fa3463b687e5f145af0
Content-Transfer-Encoding: quoted-printable
Message-Id: <5D27981B-81C8-43C0-A229-66343D9D67B4@tzi.org>
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>
To: "\"Richter, Jörg\"" <Joerg.Richter@pdv-FS.de>, Mike Jones <Michael.Jones=40microsoft.com@dmarc.ietf.org>
X-Mailer: Apple Mail (2.3608.60.0.2.5)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/3PsH1CrirResQ1c8ztSc_yx1C7o>
Subject: Re: [Cbor] 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 16:50:45 -0000

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
>> 
>