I have a time in epoch time. This time is always in the future.
I would like to figure out how to take this epoch time and figure out the seconds between now and the supplied epoch time in Objective-C (iOS), but I am not entirely sure how to go about this.
I have tried NSTimeInterval interval = [futureTime timeIntervalSinceNow]; but I am not sure what to do with interval
Much appreciated.
This will calculate the number of seconds between “now” and January 1, 1970 (Unix Epoch).
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSDate_Class/Reference/Reference.html