Concise Binary Object Representation (CBOR) Tags for Time, Duration, and Period
draft-bormann-cbor-time-tag-00

Document Type Active Internet-Draft (individual)
Last updated 2017-03-13
Stream (None)
Intended RFC status (None)
Formats plain text pdf html bibtex
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
Network Working Group                                         C. Bormann
Internet-Draft                                   Universitaet Bremen TZI
Intended status: Informational                                 B. Gamari
Expires: September 13, 2017                                   Well-Typed
                                                             H. Birkholz
                                                          Fraunhofer SIT
                                                          March 12, 2017

Concise Binary Object Representation (CBOR) Tags for Time, Duration, and
                                 Period
                     draft-bormann-cbor-time-tag-00

Abstract

   The Concise Binary Object Representation (CBOR, RFC 7049) is a data
   format whose design goals include the possibility of extremely small
   code size, fairly small message size, and extensibility without the
   need for version negotiation.

   In CBOR, one point of extensibility is the definition of CBOR tags.
   RFC 7049 defines two tags for time: CBOR tag 0 (RFC3339 time) and tag
   1 (Posix time [TIME_T], int or float).  Since then, additional
   requirements have become known.  The present document defines a CBOR
   tag for time that allows a more elaborate representation of time, as
   well as CBOR tags for duration and time period.  It is intended as
   the reference document for the IANA registration of the CBOR tags
   defined.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at http://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on September 13, 2017.

Bormann, et al.        Expires September 13, 2017               [Page 1]
Internet-Draft         CBOR tag for extended time             March 2017

Copyright Notice

   Copyright (c) 2017 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (http://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   2
     1.1.  Terminology . . . . . . . . . . . . . . . . . . . . . . .   3
     1.2.  Background  . . . . . . . . . . . . . . . . . . . . . . .   3
   2.  Objectives  . . . . . . . . . . . . . . . . . . . . . . . . .   3
   3.  Time Format . . . . . . . . . . . . . . . . . . . . . . . . .   4
     3.1.  Keys 0 and 1  . . . . . . . . . . . . . . . . . . . . . .   4
     3.2.  Keys 4 and 5  . . . . . . . . . . . . . . . . . . . . . .   5
     3.3.  Keys -3, -6, -9, -12  . . . . . . . . . . . . . . . . . .   5
     3.4.  Key -1  . . . . . . . . . . . . . . . . . . . . . . . . .   5
     3.5.  Key -2  . . . . . . . . . . . . . . . . . . . . . . . . .   5
     3.6.  Key -4  . . . . . . . . . . . . . . . . . . . . . . . . .   6
     3.7.  Key -5  . . . . . . . . . . . . . . . . . . . . . . . . .   6
     3.8.  Key -7  . . . . . . . . . . . . . . . . . . . . . . . . .   6
     3.9.  Key -8  . . . . . . . . . . . . . . . . . . . . . . . . .   6
     3.10. Key -10 . . . . . . . . . . . . . . . . . . . . . . . . .   6
   4.  Duration Format . . . . . . . . . . . . . . . . . . . . . . .   7
   5.  Period Format . . . . . . . . . . . . . . . . . . . . . . . .   7
   6.  CDDL typenames  . . . . . . . . . . . . . . . . . . . . . . .   7
   7.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .   7
   8.  Security Considerations . . . . . . . . . . . . . . . . . . .   8
   9.  References  . . . . . . . . . . . . . . . . . . . . . . . . .   9
     9.1.  Normative References  . . . . . . . . . . . . . . . . . .   9
     9.2.  Informative References  . . . . . . . . . . . . . . . . .  10
   Acknowledgements  . . . . . . . . . . . . . . . . . . . . . . . .  10
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .  10
Show full document text