I have a unixTimeStamp date value. I have converted it to NSDate:
example :
1582118428 => 2020-02-19 13:20:28 +0000
Works fine. Code where I do converting:
let date = NSDate(timeIntervalSince1970: 1582118428)
let dateTimeNow = NSDate()
Question : How can I compare dates, how to for example print("OK") if date
was 5 hours older than dateTimeNow
or 10 days older than dateTimeNow
?