Time zone format string for XML

Note: The output format for the native schema XML date/time field is always:
{CCYY-MM-DD}T{HH24:MM:SS.3-3+/-ZZ:ZZ}
To specify a different output format, use Xerces XML.

The following time zone strings support the specification of a single character Z to indicate Coordinated Universal Time (UTC), as described by the World Wide Web Consortium (www.w3c.org) and the ISO 8601 standard:

  • +/-ZZZZ
  • +/-ZZ:ZZ
  • TZD

When the +/-ZZ:ZZ or +/-ZZZZ format string is specified, the data validation process works in the following manner:

  • Valid data that corresponds to this format string will contain either a character literal Z (representing UTC) or a zone in the appropriate format: +/-ZZ:ZZ or +/-ZZZZ, as specified.
  • If a character literal Z is present, it shall be interpreted, and treated at mapping time, as UTC, which is equivalent to +00:00 or +0000.

When the TZD format string is specified, the data validation and output generation processes work in the following manner:

  • Valid data that corresponds to this format string will contain either a character literal Z, representing UTC, or a zone, in the +/-ZZ:ZZ format.
  • If a character literal Z is present, it shall be interpreted, and treated at mapping time, as UTC, which is equivalent to +00:00.
  • If the value is +/-00:00, it generates Z in the output. Otherwise, it generates the output in +/-ZZ:ZZ format.

The following time zone strings support the omission of the minute portion of the difference from UTC:

  • +/-ZZ[:ZZ]
  • +/-ZZ[ZZ]