Data Format Description Language (DFDL) v1.0 Specification
OGF Proposed Recommendation GFD-P-R.174, January 31, 2011


13.13 Properties specific to calendar with Binary representation

Binary integers are considered to be a binary representation.

Property Name

Description

binaryCalendarRep

Enum

Valid values are ‘packed’, ‘bcd’, 'binarySeconds', ‘binaryMilliseconds’

‘packed’ means represented as a packed decimal. In the packed decimal format, each byte contains two decimal digits, except for the rightmost byte, which contains a sign to the right of a decimal digit.

‘bcd’ means represented as a binary coded decimal with two digits per byte..

For ‘packed’ and ‘bcd’ the following properties are also applicable

dfdl:binaryPackedSignCodes (packed only)

dfdl:binaryNumberCheckPolicy

dfdl:binaryDecimalVirtualPoint is assumed to be 0,

See Properties specific to numbers with binary representation section : ‎13.7 Properties Specific to Numbers with Binary representation

‘binarySeconds' means represented as a 4 byte integer that is the number of seconds since the epoch.

‘binaryMilliseconds’ means represented as an 8 byte integer that is the number of seconds since the epoch.

Annotation: dfdl:element, dfdl:simpleType

binaryCalendarEpoch

DateTime

Used when dfdl:binaryCalendarRep is 'binarySeconds' or ‘binaryMilliseconds’

The epoch from which to calculate dates and times.

Annotation: dfdl:element, dfdl:simpleType


Copyright (C) Open Grid Forum (2005-2010). All Rights Reserved.

This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to the OGF or other organizations, except as needed for the purpose of developing Grid Recommendations in which case the procedures for copyrights defined in the OGF Document process must be followed, or as required to translate it into languages other than English.