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

Carsten Bormann <cabo@tzi.org> Wed, 11 March 2020 15:25 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 E51F13A09C1 for <cbor@ietfa.amsl.com>; Wed, 11 Mar 2020 08:25:16 -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 1YRaHgJfisqq for <cbor@ietfa.amsl.com>; Wed, 11 Mar 2020 08:25:13 -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 7270C3A094F for <cbor@ietf.org>; Wed, 11 Mar 2020 08:25:13 -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 48cwkb4lFvz18m8; Wed, 11 Mar 2020 16:25:11 +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: <282209381d8b4a8b8e77515142266df2@pdv-FS.de>
Date: Wed, 11 Mar 2020 16:25:11 +0100
Cc: Mike Jones <Michael.Jones=40microsoft.com@dmarc.ietf.org>, "cbor@ietf.org" <cbor@ietf.org>, Anthony Nadalin <tonynad@microsoft.com>
X-Mao-Original-Outgoing-Id: 605633110.9209599-096bc4226b64c93069a01e67f62e80c9
Content-Transfer-Encoding: quoted-printable
Message-Id: <DD66072D-5319-49D7-85A0-F6F2D354A52D@tzi.org>
References: <CH2PR00MB0679818FABC93C37FF88A404F5E40@CH2PR00MB0679.namprd00.prod.outlook.com> <AB18584F-BA25-464E-8DEC-217067D7643E@tzi.org> <282209381d8b4a8b8e77515142266df2@pdv-FS.de>
To: "\"Richter, Jörg\"" <Joerg.Richter@pdv-FS.de>
X-Mailer: Apple Mail (2.3608.60.0.2.5)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/TY8Epz_uRz8IanujNqhkJ5LJ5XM>
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 15:25:25 -0000

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
>