Network Working Group | P. Thierry |
Internet-Draft | Thierry Technologies |
Intended status: Experimental | August 06, 2013 |
Expires: February 07, 2014 |
BULK Time namespace
draft-thierry-bulk-time-00
This specification describes a BULK serialization of time informations.
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 February 07, 2014.
Copyright (c) 2013 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.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 [RFC2119].
Literal numerical values are provided in decimal or hexadecimal as appropriate. Hexadecimal literals are prefixed with 0x to distinguish them from decimal literals.
BULK bytes sequences and expressions are described with the same conventions than used in the BULK 1.0 specification [BULK1]
The time namespace is an official namespace identified by the UUID urn:uuid:a0236aea-9923-511d-b755-66be75151201 (BULK, "Time passed, which, basically, is its job."). It provides a standard way to serialize some formats used to express time, mainly those from ISO 8601 [ISO8601].
This specification defines the following types:
Note that BULK serializations of single points in time are notably bigger than a string containing their ISO 8601 notation. Such times SHOULD be serialized as offsets against an epoch (like Julian date or Unix time), except where simplicity of implementation is wanted.
This serialize dates like 1999, 2001-06 or 2013-08-06.
Types: ISOTime, Date
This serialize dates like 1979, 1987-W06 or 2012-W52-1.
Types: ISOTime, Date
This serialize dates like 2004-006 or 2000-366.
Types: ISOTime, Date
This serialize times like 22, 13:45 or 06:34:57,3. {components} MUST contain from 1 to 3 expressions.
Types: ISOTime, ISOTimeOfDay
This serialize dates like 2005-W34-7T19:45.
Type: ISOTime
This serialize times like 2005-W34-7T19:45Z or 11:53:23Z.
Type: ISOTime
This serialize times like 2005-W34-7T19:45+02 or 11:53-01:30.
Type: ISOTime
All durations have the same shape: ( Ref {components}:IntsF ). { components} must contain from 1 to respectively 6, 5, 4, 3, 2, 1 and 1 expressions.
Type: ISODuration
Type: Interval
It serializes the Julian Day Number (if {num} has type Int) or the Julian Date (if {num} has type Float).
It serializes the number of seconds since or until the Unix epoch (with microsecond or nanosecond precision if the number has type Float).
It serializes a stardate following the conventions of Star Trek: The Next Generation and following series.
It serializes a date in the hebrew calendar.
It serializes a date in the islamic calendar.
[RFC2119] | Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels ", BCP 14, RFC 2119, March 1997. |
[BULK1] | Thierry, P., "Binary Uniform Language Kit 1.0", Internet-Draft draft-thierry-bulk-02, August 2013. |
[ISO8601] | ISO 8601:2004 Data elements and interchange formats -- Information interchange -- Representation of dates and times", 2004. | , "