Considering that there is no NSTime in Cocoa-Touch (Objective-C on iPhone), and given two times as NSStrings and a timezone as an NSString, how can you calculate whether or
You should be able to do what you are wanting to do with a combination of NSDate
, and NSDateFormatter
.
NSDateFormatter
has a dateFromString:
method which will let you convert your strings into NSDate
objects, then you can use the compare:
method of NSDate
to compare the two against [NSDate date]
which will have the current time.
(NSDate
encompasses both date and time)