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
相关推荐
九天银河技术 2020-11-11
行万里 2020-10-26
此处省略三千字 2020-10-22
nongfusanquan0 2020-09-23
夜影风个人空间 2020-09-22
adsadadaddadasda 2020-09-08
85251846 2020-09-14
jbossrobbie 2020-08-16
幸福ITman汪文威 2020-08-15
MySQL源氏boy 2020-08-15
MySQLqueen 2020-08-15
solarspot 2020-07-28
Greatemperor 2020-07-19
冷月醉雪 2020-07-05
manongxiaomei 2020-07-05
javamagicsun 2020-07-04
june0 2020-07-04
yogoma 2020-06-25