摘要:
1 +(NSString*)getTimeFromTimeStamp:(NSString*)dateStamp 2 { 3 4 NSDate *confromTimesp = [NSDate dateWithTimeIntervalSince1970:dateStamp.floatValue]; 5 NSDateFormatter *formatter = [[NSD... 阅读全文
摘要:
1 +(NSString*)getTimeStamp:(NSDate*)dateNow 2 { 3 4 NSTimeInterval time = [dateNow timeIntervalSince1970]*1000;//NSTimeInterval本身是个秒级别的double类型数值,小数点后面即毫秒数,*1000.0f即可得到毫秒级别的时间差 5 long long d... 阅读全文