Have you seen the Dates and Times Programming Topics for Cocoa manual?
Basically you need to convert your time into an NSDate. To convert a string to a date you use the NSDateFormatter
class or maybe NSDateComponents
if you already know the hours, minutes and seconds.
Your NSTimeInterval
is just a double (i.e., 3600.0).
Then you use the addTimeInterval
method of NSDate to add the number of seconds to the time.
NSDate* newDate = [oldDate addTimeInterval:3600.0];
You can then use either NSDateFormatter
or NSDateComponents
to get the new time back out again.