SQL and datetime from unix (epoch) time

Written by

in

from here:

SQLite
SELECT datetime(MyColumn, “unixepoch”, “localtime”) FROM MyTable

MySQL
SELECT from_unixtime(MyColumn) FROM MyTable

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *