setCalendarFormat:
カレンダー日付のフォーマットをセットします
-(void)setCalendarFormat:(NSString *)format:
解説
カレンダー日付のフォーマットをセットします。
返り値
( void )
なし
引数
( NSString * )format
日付フォーマット
フレームワーク
Foundation
クラス
NSCalendarDate
Instance Methods
使用可能
10.0
参照
- calendarFormat
- description
- descriptionWithLocale:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSCalendarDate *theDate; theDate = [NSCalendarDate calendarDate]; [theDate setCalendarFormat:@"%y/%m/%d (%a) %I:%M %p"]; NSLog([theDate description]); } @end