Contents

timeZone(separator:)

Modifies the ISO 8601 date format style to include the time zone in the formatted output.

Declaration

func timeZone(separator: Date.ISO8601FormatStyle.TimeZoneSeparator) -> Date.ISO8601FormatStyle

Parameters

  • separator:

    Character used to separate the time and time zone in a date.

Return Value

An ISO 8601 date format style modified to include the time zone.

Discussion

The default Date.ISO8601FormatStyle doesn’t include the time zone.

For more information about formatting dates, see the Date.FormatStyle.

See Also

Modifying Times in an ISO 8601 Format Style