How to convert Unix era in SQLite

Can you help me convert the unix era into the format yyyy-mm-dd hh:mm:ss(24h) in sqlite? (GMT 7 is very appreciated).

For example: from 1319017136629 to 4:38:56 PM GMT 7 on Wednesday, October 19, 2011

Thanks in advance.

p/s: Look around to find a solution:

SELECT datetime(1319017136629,'unixepoch','localtime');

But I am still looking for a way to batch convert Unix epoch times in SQLite.

To change the value in the database, use the UPDATE command:

< p>

UPDATE MyTable SET MyColumn = datetime(MyColumn,'unixepoch','localtime')

You can help me convert the unix era to The format yyyy-mm-dd hh:mm:ss(24h) is in sqlite? (GMT 7 is very appreciated).

For example: from 1319017136629 to 4:38:56 PM GMT 7 on Wednesday, October 19, 2011

Thanks in advance.

p/s: Look around to find a solution:

SELECT datetime(1319017136629,'unixepoch','localtime');

But I am still looking for a way to batch convert Unix epoch times in SQLite.

To change the value in the database, use the UPDATE command:

UPDATE MyTable SET MyColumn = datetime(MyColumn,'unixepoch','localtime')

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 936 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.