9

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

1 Answers1

18

NSDate *someDate = [NSDate dateWithTimeIntervalSince1970:some_time_t]

Dave Kilian
  • 1,012
  • 8
  • 6