NSDateFormatter*formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"HH:mm:ss"];
NSString *locationString=[formatter stringFromDate: [NSDate date]];
[formatter release];
HH 大写24小时制,hh 小写12小时制
NSDateFormatter*formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"HH:mm:ss"];
NSString *locationString=[formatter stringFromDate: [NSDate date]];
[formatter release];
HH 大写24小时制,hh 小写12小时制