Computers usually calculate dates as the number of seconds from some arbitrary point in time ("era date".) You can use floating point numbers for the accuracy of a second.
The date of the UNIX era is midnight, January 1970 is UTC. (Average time AKA Greenwich.)
The era's date for Mac OS and iOS is midnight in January, 2001.
Unix Epoch - . - Unix.
NSDate " " NSDate:
+[NSDate dateWithTimeIntervalSince1970:]
+[NSDate dateWithTimeIntervalSinceReferenceDate:]
-[NSDate timeIntervalSince1970]
-[NSDate timeIntervalSinceReferenceDate]
, timeIntervalSince1970 NSDate. , , , , .
NSDate UTC:
NSTimeInterval interval = 1361964707.0;
NSDate *aDate = [NSDate dateWithTimeIntervalSince1970: interval];
NSLog(@"Date = %@", aDate);
= 2013-02-27 11:31:47 +0000
, 2013 , , .