ISO 8601 format

From Messaging Server Technical Reference Wiki
Jump to: navigation, search


The ISO 8601, or ISO 8601 time, format is either specified in Greenwich Mean time (GMT or Zulu):

yyyy-mm-ddThhmmss.ssZ

or with an optional time zone offset:

yyyy-mm-ddThhmmss.ss+hh:mm

or

yyyy-mm-ddThhmmss.ss-hh:mm

The hyphens in the date portion are optional and may be omitted; though for a negative time zone offset, a hyphen/minus must of course be specified. Spaces are ignored. Year is specified in four digits, each of month, day, hours, and minutes is specified in exactly two digits (using a leading zero for values less than 10), and seconds is typically specified in exactly two digits (using a leading zero for values less than 10) or optionally can include a decimal point followed two more digits specifying hundredths of a second. Hours are specified on a 24 hour clock. For instance:


2013-05-22T12:30:00-08:00

Note that prior to Messaging Server 7.0, only a somewhat more restricted format was supported: hyphens were not permitted in the date, nor was a time zone offset permitted (Z was required), nor were fractions of a second (hundredths of a second) permitted.

The imsimta test -time utility may be used to test the validity of an ISO 8601 time string, as well as convert it into the (perhaps more familiar) date-time format used in RFC 822 header fields, such as Received: and Date: header fields.


See also: