سؤال

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

هل كانت مفيدة؟

المحلول

NSDate *someDate = [NSDate dateWithTimeIntervalSince1970:some_time_t]

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top