标签:
NSDate *datenow = [NSDate date];
NSTimeZone *zone = [NSTimeZone systemTimeZone];
NSInteger interval = [zone secondsFromGMTForDate:datenow];
NSDate *localeDate = [datenow dateByAddingTimeInterval: interval];
NSString *timeTamp=[NSString stringWithFormat:@"%ld",(long)[localeDate timeIntervalSince1970]]
标签:
原文地址:http://www.cnblogs.com/mgy007/p/4284880.html