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

Mike Jones <Michael.Jones@microsoft.com> Wed, 11 March 2020 16:57 UTC

Return-Path: <Michael.Jones@microsoft.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 838D53A0DAB for <cbor@ietfa.amsl.com>; Wed, 11 Mar 2020 09:57:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.101
X-Spam-Level:
X-Spam-Status: No, score=-2.101 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=microsoft.com
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 mpoX_ngOR25o for <cbor@ietfa.amsl.com>; Wed, 11 Mar 2020 09:57:45 -0700 (PDT)
Received: from NAM06-BL2-obe.outbound.protection.outlook.com (mail-bl2nam06on0729.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe55::729]) (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 680CC3A0D9D for <cbor@ietf.org>; Wed, 11 Mar 2020 09:57:09 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gpBPUU6bfcfe0q+0Y0R7fn+5El/yq2hYwiNHyWso7TBH+FCoNywnS0B2YWz3n5ped6qBmpQ5st5Lsq4pgUB1M1goIplsyNRKqSogkj01PGszfh8MsEkVpQ1xLGcsox/KyDBKDu9mVKZN5pfaDVfyrLMdH9ej7GsNvCE+iR2Lv2mtd4qvYdTCYqz40iDhO+WXcRdoJpTc1q4F11xdNIOxFJt4TgA9fuBQTfoymaNFtQCaH+qPn+Ct61Hpj8AtjGFmwEEzlN/WpCAUUgJL3ZHN/rpvnKkMb1nOV2H96aInrYMeKDdYZrxk5Z7ApqXboOU0oGOjgQUftZJNHYUgm1FBhA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;bh=vmsGMHdkRv/rsb38bBPPvBT6alaQnuSW+50lltjTiRU=; b=QGIo7bNMm9q3MdF8xAYzvDmvl/AYnWuHsVYt4nkOYBtMqYVaGffEokp//8/CNoYT6f46WZGsyLKr5uE3nQNWCll+1BNHyrbKZAQNPkZRbKq+yOEH5wNZoKd1doKMJFMyBVCV5UCiIdxafrdvF7/abSsK1YlM1MkIB0lrJIrmvAaFoKi+FwCQmWrFE9We/mVdHTHV2K5E6eOeCYO2tjICQSdK2fPuKwgT0kUt0TWy8RBfTR6hwF0iGmcb2l0SK19YfNKXuUCnqz2pq63hju1MQvGfeU9plCtlLLCTIQxaDLU3Uowq/bWTe8OYhldVICZcOnjg1+SvlLMDrqx5ovBsMQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;bh=vmsGMHdkRv/rsb38bBPPvBT6alaQnuSW+50lltjTiRU=; b=KwO7H63JSyzLBt13/0Xfzz7nF6hrTdwN83OtC5mfh8/8FsnFIvGm1sDYHH7CNzeR8E0AuGA4tW7Ccb4zBTMQymRUhPtC1DezQSnNp7RY+upWLZRDeR/gPJNQmIQK/yegQcxEhdGinmhqg70/oPrLRz1XVjW5nL5qBQ33Zdw/CTQ=
Received: from CH2PR00MB0678.namprd00.prod.outlook.com (20.180.6.215) by CH2PR00MB0794.namprd00.prod.outlook.com (10.186.139.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2854.0; Wed, 11 Mar 2020 16:57:06 +0000
Received: from CH2PR00MB0678.namprd00.prod.outlook.com ([fe80::f116:29ee:b1b2:a099]) by CH2PR00MB0678.namprd00.prod.outlook.com ([fe80::f116:29ee:b1b2:a099%9]) with mapi id 15.20.2850.000; Wed, 11 Mar 2020 16:57:06 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Carsten Bormann <cabo@tzi.org>, "\"Richter, Jörg\"" <Joerg.Richter@pdv-FS.de>, Mike Jones <Michael.Jones=40microsoft.com@dmarc.ietf.org>
CC: "cbor@ietf.org" <cbor@ietf.org>, Anthony Nadalin <tonynad@microsoft.com>
Thread-Topic: [EXTERNAL] Re: [Cbor] CBOR tag for RFC 3339 full-date values
Thread-Index: AQHV8fiNx9FAVJg+YEmb//E1cavkUqhDjpGAgAAX3wCAAADkkA==
Date: Wed, 11 Mar 2020 16:57:06 +0000
Message-ID: <CH2PR00MB0678D2057CEA99E7431C5225F5FC0@CH2PR00MB0678.namprd00.prod.outlook.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>
In-Reply-To: <5D27981B-81C8-43C0-A229-66343D9D67B4@tzi.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=64358d5b-77e5-4188-b0bc-00007c79bfb0; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2020-03-11T16:53:49Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47;
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michael.Jones@microsoft.com;
x-originating-ip: [50.47.83.137]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: 056b4a47-4b03-4171-5668-08d7c5dd3b29
x-ms-traffictypediagnostic: CH2PR00MB0794:|CH2PR00MB0794:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <CH2PR00MB0794C3DDCD10B521C64BBF01F5FC0@CH2PR00MB0794.namprd00.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:7691;
x-forefront-prvs: 0339F89554
x-forefront-antispam-report: SFV:NSPM; SFS:(10001)(10019020)(4636009)(376002)(366004)(39860400002)(346002)(136003)(396003)(199004)(26005)(53546011)(6506007)(7696005)(33656002)(86362001)(55016002)(110136005)(8990500004)(54906003)(316002)(107886003)(4326008)(9686003)(186003)(76116006)(66446008)(64756008)(66556008)(66476007)(66946007)(2906002)(966005)(478600001)(10290500003)(71200400001)(5660300002)(8676002)(81156014)(81166006)(52536014)(8936002)(66574012); DIR:OUT; SFP:1102; SCL:1; SRVR:CH2PR00MB0794; H:CH2PR00MB0678.namprd00.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1;
received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: fC5yvBrozotk5bes8TcoCbb2DHCtvjTnrwxaRV3kM7+qtqSORGb46o0J39iZOjSk7EhdkadOIUwsocvXCR8QcVmFNMnie0tyRvUYpEKViCa+Y/qHzMKo8DTkcnWhXb17XYvV4oeRG1r9uAIuRkN1kDCmIQfahgM2ZlN6GtTYKO/UyJE+MGlJe5OJfLB92Ipcup03no5jdOhQ7Gcl+L4uWluexepJgh7qfVXXgxK36sGyxNIp9lnFdNI7BT0AQPzNp9tcwxM318HoqKd3QiVz+oPRCZnJ3C8QNd1VMWMg8K7q61rVhsmGWlDTvIeQxD6/THq6Oh4f0b738q5e/nKD9sCP2AlbxDVLDX09rfDVhirHpfd1v3DIIA7im5xY3++1YACFp1msogKR2I/ijSsESIrgV+xhUpZc0aITkQuCR557tJ3SaPl/QiVdqa+gcpaZGaE4tJvLP5v0bWTKDGABX5IN+pyZVx61v1hoCRAkHnEtwcLkLNjZT/1yB2IbWIPdJCGxszoiSHtGXneA4JMO3/bJKzFUiKsAwcQtOFhTuBCM2wpBSDDdZmPcxWgxjz+/a6m4evQDumDxe/4EFkSqZIzlM/M+XFJbDmlA7/TIjdpKkJ98A9UIfKaGPkmSY3xa
x-ms-exchange-antispam-messagedata: G41YyypyDxLhCS2k3AqW54/GsFRmuePofEijkmb1eTxALAUR1LMhJKPvXNdjWZhbPehHel9sDSIFpwV0uqBU+3dEbn7Y3BtLElr+gjGY1KHRUYft60TFp5pXlJV8jhMSzRmUXBH8thuqQM/zYgbVJg==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 056b4a47-4b03-4171-5668-08d7c5dd3b29
X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2020 16:57:06.5740 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: gcASMIkawPApFbiv+p/IOePnCfG3z/beNyirLdLz8poQKLrnd67mlX9BHfwr/dwTKCzBcs8x2qHmF3lE3A174w==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR00MB0794
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/yGDUQBPqOJGSboKhLkqiPTJ2XJU>
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 16:57:48 -0000

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