Contents

init(name:)

Returns a time zone initialized with a given identifier.

Declaration

init?(name tzName: String)

Parameters

  • tzName:

    The identifier for the time zone. Providing nil for this parameter raises an invalid argument exception.

Return Value

A time zone object initialized with the identifier tzName.

Discussion

If tzName is a known identifier, this method calls init(name:data:) with the appropriate data object.

See Also

Creating Time Zones