Just found this in NSDate.h
:
#define NSTimeIntervalSince1970 978307200.0
It seems to be the UNIX timestamp of 01.01.2001 00:00:00 GMT.
What is it for and why is it a fixed number?
It's because NSDate's timeIntervalSinceReferenceDate uses 1 January 2001, GMT as its reference date while other places typically use 1970 (the "Unix epoch").
It is useful if you want to compare the current time with time stored as an interval since the earlier reference date.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With