ISO8601DateFormatter

extension ISO8601DateFormatter
  • Convenience initializer that defaults to UTC.

    Declaration

    Swift

    convenience init(_ formatOptions: Options, timeZone: TimeZone? = TimeZone(identifier: "GMT"))

    Parameters

    formatOptions

    ISO8601DateFormater.Options array to pass to the initialization.

    timeZone

    The time zone for representations, defaults to UTC.

    Return Value

    An initialized ISO8601DateFormatter.