ISO

ISO 8601 extended format, which is the format used by UtcOffset.parse and UtcOffset.toString.

An extension of the ISO 8601 is that this format allows parsing and formatting seconds.

When formatting, seconds are omitted if they are zero. If the whole offset is zero, the letter Z is output.

Examples of UTC offsets in ISO 8601 format:

  • Z or +00:00, an offset of zero;

  • +05:00, five hours;

  • -02:00, minus two hours;

  • -17:16

  • +10:36:30