Message Sets: DateTime as encoded values

You can represent a dateTime element with the TimeSeconds and TimeMilliSeconds physical types.

TimeSeconds
A 4 byte integer that represents the number of seconds since the epoch.
TimeMilliSeconds
An 8 byte integer that represents the number of milliseconds since the epoch.

These types provide a way for C time_t and Java™ dateTime representations to be parsed.

The epoch (time 0) is specified by a format string. To change the epoch you must update the physical properties of your dateTime element:

  • In the Physical representation section, you must set the Physical Type to either Time Seconds or Time Milliseconds.
  • In the Format field, set the value to the format of "yyyy-MM-dd'T'HH:mm ZZZ". For example, 2000-01-01T12:59 +00:00.