Instance Method インスタンスメソッド

initWithName:data:

Initializes a time zone with a given identifier and time zone data. 与えられた識別子とタイムゾーンデータで初期化されたタイムゾーンを返します。

Declaration 宣言

- (instancetype)initWithName:(NSString *)tzName 
                        data:(NSData *)aData;

Parameters パラメータ

tzName

The identifier for the time zone. Providing nil for this parameter raises an invalid argument exception. タイムゾーンに対する識別子。nilをこのパラメータに対して提供することは、無効な引数例外を引き起こします。

data

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. macOS 10.6現在、このメソッドの基礎をなす実装はその指定されたdataパラメータを無視するよう変更されています。

See Also 参照

Creating Time Zones タイムゾーンを作成する