thyrgle
thyrgle

Reputation:

Converting a time_t to NSDate object?

Is there any method provided by Apple or any technique that can convert a time_t type variable to an NSDate object?

Upvotes: 9

Views: 5145

Answers (1)

Dave Kilian
Dave Kilian

Reputation: 1012

NSDate *someDate = [NSDate dateWithTimeIntervalSince1970:some_time_t]

Upvotes: 18

Related Questions