Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

timeIntervalSinceReferenceDate or timeIntervalSince1970

Would there be an advantage to using timeIntervalSinceReferenceDate versus timeIntervalSince1970 (other than the fact that the ARM processor is 32 bit)?

like image 451
Chris McKnight Avatar asked Jun 05 '12 17:06

Chris McKnight


People also ask

What is timeIntervalSinceReferenceDate?

timeIntervalSinceReferenceDate is the number of seconds since January, 1st, 2001: 12:00 am (mid night) timeIntervalSince1970 is the number of seconds since January, 1st, 1970, 12:00 am (mid night) timeIntervalSinceNow is the number of seconds since now.

What does timeIntervalSince1970 return?

- timeIntervalSinceDate: Returns the interval between the receiver and another given date. The interval between the date object and the current date and time.


Video Answer


1 Answers

I say as long as it's converted on the server side when using timeIntervalSinceReferenceDate it's fine. timeIntervalSince1970 would be an option as well since ARM might be upgraded to 64 bit before 2038.

like image 181
Chris McKnight Avatar answered Oct 20 '22 15:10

Chris McKnight