isDaylightSavingTime
現在はサマータイムかを返します
解説
現在はサマータイムかを返します。
返り値
( BOOL )
YES/NO
引数
フレームワーク
Foundation
クラス
NSTimeZone
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { if ([[NSTimeZone localTimeZone] isDaylightSavingTime]){ NSLog(@"YES"); }else{ NSLog(@"NO"); } } @end