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.
SQLには日付関数がありますが、CoreDataには "<"、"="などしかありません。タイムスタンプを表すintvalueとして日付を格納すると、「-」、「+」なども使用できるようになります。変換以外に、日付をNSDateとして保存することには1つの利点がありますか?そうは思いませんが、よくわかりません。
ありがとうございました
いいえ、不利な点はありません。実際、NSManagedObjectサブクラスを生成するときに[プリミティブデータ型にスカラープロパティを使用する]を選択すると、NSDateがNSTimeInterval(double)に変換されます。