Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
この時間間隔を変換できるかどうか知りたい:
TimeIntervalSinceReferenceDate
この時間間隔まで:
TimeIntervalSince1970
新しい NSDate を作成せずに、ありがとう!
1970 年 1 月 1 日から 2001 年 1 月 1 日までの秒数を計算し、間隔から差し引くことができると思いますが、次のように言うよりも良い方法はわかりません。
[[NSDate dateWithTimeIntervalSinceReferenceDate:timeInterval] timeIntervalSince1970];