幽灵资源网 Design By www.bzswh.com

下面是具体的实现代码:

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,时间戳,时间

幽灵资源网 Design By www.bzswh.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
幽灵资源网 Design By www.bzswh.com