标签:style class blog code color set
sqlite时间戳转时间、时间转时间戳的方法
实现代码:
sqlite> SELECT datetime(1377168853, ‘unixepoch‘, ‘localtime‘); +------------------------------------------------+ | datetime(1377168853, ‘unixepoch‘, ‘localtime‘) | +------------------------------------------------+ | 2013-08-22 18:54:13 | +------------------------------------------------+ 1 row in set sqlite> SELECT strftime(‘%s‘,‘now‘); +----------------------+ | strftime(‘%s‘,‘now‘) | +----------------------+ | 1380728519 | +----------------------+ 1 row in set sqlite> SELECT datetime(‘now‘); +---------------------+ | datetime(‘now‘) | +---------------------+ | 2013-10-02 15:40:44 | +---------------------+ 1 row in set
sqlite时间戳转时间语句(时间转时间戳)实例,布布扣,bubuko.com
标签:style class blog code color set
原文地址:http://www.cnblogs.com/cfinder010/p/3809296.html