エポック秒を取得する - iOS開発メモ

サンプル

timeIntervalSince1970を使います。

NSDate *now = [NSDate date];
NSTimeInterval epoch = [now timeIntervalSince1970];
NSLog(@"%ld", (time_t)epoch);

関連項目

なし