Can we substract (say 1 hour) from the given nstimeinterval eg: 1416528000.000000 ?
NSDate * today1 = [NSDate date];
NSTimeInterval today = [today1 timeIntervalSince1970];
Substracting 1 hour from today?
Can we substract (say 1 hour) from the given nstimeinterval eg: 1416528000.000000 ?
NSDate * today1 = [NSDate date];
NSTimeInterval today = [today1 timeIntervalSince1970];
Substracting 1 hour from today?
A
NSTimeInterval
is measured in seconds. If you substract 3600 from it, you'll go back one hour in time (60 minutes * 60 seconds per minute).