Converting a time_t to NSDate object?
Asked Answered
B

1

9

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

Baxley answered 2/6, 2010 at 3:6 Comment(0)
C
18

NSDate *someDate = [NSDate dateWithTimeIntervalSince1970:some_time_t]

Contralto answered 2/6, 2010 at 3:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.