Could you help me convert UNIX epoch time into format yyyy-mm-dd hh:mm:ss (24h) in SQLite? (GMT+7 would be appreciated).
yyyy-mm-dd hh:mm:ss
Example: from 1319017136629 to Wednesday, October 19, 2011 4:38:56 PM GMT+7.
1319017136629
Wednesday, October 19, 2011 4:38:56 PM GMT+7
p/s: Just looked around and found a solution:
SELECT datetime(1319017136629, 'unixepoch', 'localtime');
But i am still looking for a way to batch convert UNIX epoch time in SQLite.
To change the values in the database, use the UPDATE command:
UPDATE
UPDATE MyTable SET MyColumn = datetime(MyColumn, 'unixepoch', 'localtime')
1.4m articles
1.4m replys
5 comments
57.0k users