开发者

Underlying value of an NSDate (DateValue)

开发者 https://www.devze.com 2022-12-27 07:27 出处:网络
To debug a DB app I need to verify the datevalue against the value that arrives in my SQLiteDB. Is there a way to show the double(?)-value of an NSDate (in开发者_运维知识库 code covert it to a double?

To debug a DB app I need to verify the datevalue against the value that arrives in my SQLiteDB. Is there a way to show the double(?)-value of an NSDate (in开发者_运维知识库 code covert it to a double?)


Apparently solution depends on what value is stored in your database.

Have a look at -timeIntervalSince1970 method - it may do for you as timeintervals are often used for storing date values in db.

0

精彩评论

暂无评论...
验证码 换一张
取 消