服務(wù)器返回的時(shí)間戳
- (NSString*)getOvertime:(NSString*)mStr{
NSTimeInterval interval =[mStr doubleValue] / 1000.0;
NSDate *date = [NSDate dateWithTimeIntervalSince1970:interval];
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"HH:mm"];
NSString *dateString = [formatter stringFromDate: date];
NSLog(@"服務(wù)器返回的時(shí)間戳對(duì)應(yīng)的時(shí)間是:%@",dateString);
return dateString;
}