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
nilfor 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.