赞
踩
int seconds =[sourceDic[@"creat_time"] intValue];
NSDate *date = [NSDate dateWithTimeIntervalSince1970:seconds];
NSTimeZone *zone = [NSTimeZone systemTimeZone];
NSInteger interval = [zone secondsFromGMTForDate: date];
NSDate *localeDate = [date dateByAddingTimeInterval: interval];
self.timeLab.text =[NSString stringWithFormat:@"%@",localeDate];
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。