Contents

init(name:data:)

Initializes a time zone with a given identifier and time zone data.

Declaration

init?(name tzName: String, data aData: Data?)

Parameters

  • tzName:

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

  • aData:

    This parameter is ignored.

Discussion

As of macOS 10.6, the underlying implementation of this method has been changed to ignore the specified data parameter.

See Also

Creating Time Zones