Type Method 型メソッド

timeZoneForSecondsFromGMT:

Returns a time zone object offset from Greenwich Mean Time by a given number of seconds. グリニッジ標準時からある与えられた秒数だけ補われるタイムゾーンオブジェクトを返します。

Declaration 宣言

+ (instancetype)timeZoneForSecondsFromGMT:(NSInteger)seconds;

Parameters パラメータ

seconds

The number of seconds by which the new time zone is offset from GMT. この秒数だけ新しいタイムゾーンはGMTから補われます。

Return Value 戻り値

A time zone object offset from Greenwich Mean Time by seconds. グリニッジ標準時からsecondsだけ補われるタイムゾーンオブジェクト。

Discussion 議論

The name of the new time zone is GMT +/– the offset, in hours and minutes. Time zones created with this method never have daylight savings, and the offset is constant no matter the date. 新しいタイムゾーンの名前は、GMT +/– 相殺、です、時間と分で。このメソッドで作成されるタイムゾーンは決して夏時間を持ちません、そしてこの相殺は日付がどうあれ定数です。

See Also 参照

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