Re: [Cbor] More Tags
Thiago Macieira <thiago.macieira@intel.com> Thu, 31 January 2019 15:52 UTC
Return-Path: <thiago.macieira@intel.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 E6414123FFD for <cbor@ietfa.amsl.com>; Thu, 31 Jan 2019 07:52:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level:
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-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 GIomEjwHyAYr for <cbor@ietfa.amsl.com>; Thu, 31 Jan 2019 07:52:37 -0800 (PST)
Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (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 480C61200D7 for <cbor@ietf.org>; Thu, 31 Jan 2019 07:52:37 -0800 (PST)
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jan 2019 07:52:36 -0800
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.56,545,1539673200"; d="scan'208";a="315226446"
Received: from orsmsx101.amr.corp.intel.com ([10.22.225.128]) by fmsmga006.fm.intel.com with ESMTP; 31 Jan 2019 07:52:35 -0800
Received: from tjmaciei-mobl1.localnet (10.254.86.243) by ORSMSX101.amr.corp.intel.com (10.22.225.128) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 31 Jan 2019 07:52:35 -0800
From: Thiago Macieira <thiago.macieira@intel.com>
To: cbor@ietf.org
CC: "Richter, Jörg" <Joerg.Richter@pdv-fs.de>
Date: Thu, 31 Jan 2019 07:52:35 -0800
Message-ID: <5154029.7Y6btYJYJ6@tjmaciei-mobl1>
Organization: Intel Corporation
In-Reply-To: <5670d93ff74b413c884adc470565a331@pdv-FS.de>
References: <5670d93ff74b413c884adc470565a331@pdv-FS.de>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="iso-8859-1"
X-Originating-IP: [10.254.86.243]
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/vc5S3Bn3_kw2wPPgcwm3IxUkFnY>
Subject: Re: [Cbor] More Tags
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: Thu, 31 Jan 2019 15:52:40 -0000
On Thursday, 31 January 2019 05:39:31 PST Richter, Jörg wrote: > * ISO8601-Date "YYYY-MM-DD" or days since 1970-01-01 > * ISO8601-Time of day "hh:mm[:ss[.f*]]" or (fractional) seconds since 00:00 > * IANA Time zone (https://www.iana.org/time-zones) represented as string > * Currency (ISO 4217) represented as string ("USD"/"EUR"/...) or number > (840/978/...) * Money amount represented as 2-array of quantity + > currency-string or currency-number - quantity should allow every possible > number coding. Including decimal fractions and rationals. > > Or are there already some tags for this use-cases I may have overlooked? Date tags already exist. I suppose the one for ISO date/time could be extended to allow just dates, unless you specifically need to differentiate dates from date/times. But since you appear to need times too separate from date/time, for completeness it may be good to support dates separately too. When writing your specification for money quantities, please write down which representations you expect implementations to support in all cases, leaving the others as optionals. I expect you may need to name decimal fractions as mandatory and implementations will need to know that. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center
- [Cbor] More Tags Richter
- Re: [Cbor] More Tags Thiago Macieira