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]]
时间: 2024-10-14 13:39:55