sqlite时间戳转时间语句(时间转时间戳)

2022-12-08 0 994

下面是具体的实现代码:

sqlite> SELECT datetime(1377168853, \’unixepoch\’, \’localtime\’);+————————————————+| datetime(1377168853, \’unixepoch\’, \’localtime\’) |+————————————————+| 2013-08-22 18:54:13 |+————————————————+1 row in setsqlite> SELECT strftime(\’%s\’,\’now\’);+———————-+| strftime(\’%s\’,\’now\’) |+———————-+| 1380728519 |+———————-+1 row in setsqlite> SELECT datetime(\’now\’);+———————+| datetime(\’now\’) |+———————+| 2013-10-02 15:40:44 |+———————+1 row in set

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

悠久资源 SQLite数据库 sqlite时间戳转时间语句(时间转时间戳) https://www.u-9.cn/sql/sqlite/6222.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务

  • 0 +

    访问总数

  • 0 +

    会员总数

  • 0 +

    文章总数

  • 0 +

    今日发布

  • 0 +

    本周发布

  • 0 +

    运行天数

注册会员,众多资源免费下载