My coredata sqlite table "SQLTABLE" contains a tuple of type timestamp "ZTIMESTAMP" as 123456789
How can I read it using sql (not obj C) and convert it to a date ?
My coredata sqlite table "SQLTABLE" contains a tuple of type timestamp "ZTIMESTAMP" as 123456789
How can I read it using sql (not obj C) and convert it to a date ?
SELECT strftime('%Y-%m-%d-%H:%M', ZTIMESTAMP, 'unixepoch') as time from SQLTABLE
Sqlite allows you to format time that is a UNIX time timestamp.
You can test this in a SQL Browser tool locally. To check your query and I think you can change "unixepock" to "local-time" for the time in your local time.