Skip to main content
Skip table of contents

Working with Timestamps

LightWave Client supports 64-bit and 48-bit timestamp fields. To define a timestamp field in schema, set the field type to "timestamp" and use the size property to indicate if the field is 64 bit or 48 bit, for example:

JS
{
  "TimestampTypes": {
    "anonymous": false,
    "elements": [
      {
        "name": "timestamp64bitJulian",
        "type": "timestamp",
        "size": 8
      },
      {
        "name": "timestamp48bit",
        "type": "timestamp",
        "size": 6
      }
    ]
  }
}

Timestamp Formats

Several standard timestamp formats can be serialized or deserialized from the message body. The timestamp format is specified using the timestampFormat property. The following formats are supported:

timestampFormat

description

ISO8601

ISO8601 Date/Time format as described in RFC 3339. This is the default format used when the timestampFormat property is omitted.

ISO8601:full-date

ISO8601 Date/Time full-date format as described in RFC 3339.

RFC2822

RFC2822 Date and Time format as desribed in RFC 2822

XSD:dateTime

XSD dateTime format as described in XML Schema Part 2: Datatypes

Schema definition with ISO8601:full-date
JS
{
  "ISO8601Timestamp": {
    "anonymous": false,
    "elements": [
      {
        "name": "theDate",
        "type": "timestamp",
        "size": 8,
		"timestampFormat": "ISO8601:full-date"
      }
    ]
  }
}


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.