Underlying value of an NSDate (DateValue)
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.
精彩评论