Persisting Dates to SQLite3 in an iPhone Application

后端 未结 5 1789
忘掉有多难
忘掉有多难 2020-12-05 03:31

I am developing an iPhone application that persists data to a SQLite3 database.

For each row I persist I wish to include a \'created date\' and a \'last modified da

5条回答
  •  甜味超标
    2020-12-05 03:55

    According to the docs there's no DATETIME data type! I use a real data type and convert an NSDate to a real using the timeIntervalSinceReferenceDate method.

提交回复
热议问题