「Objective-C」iosのシステム時刻を取得する
サンプルコード
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
NSDate *date = [NSDate date];
timeLabel.text = [formatter stringFromDate:date];
[formatter release];
[formatter setTimeStyle:NSDateFormatterFullStyle];
[formatter setTimeStyle:NSDateFormatterLongStyle];
[formatter setTimeStyle:NSDateFormatterMediumStyle];
[formatter setTimeStyle:NSDateFormatterShortStyle];