If you have a Unix timestamp, you can use SQLite’s DATETIME()
function with the unixepoch
modifier to compute the actual date and time.
You can alternatively use the DATE()
function if you only need the date to be returned. And it’s also possible to use the TIME()
function to return just the time portion.