豌豆

没有荚

  • Home
  • blog
  • Tags
  • Categories
  • Archives
  • Table of Contents
  • Overview

WangZirui

141 posts

Sqlite 如何获取系统时间

Posted on 2014-03-20

Sqlite3提供了函数

select time()

select datetime()

来获取时间和日期。不过获取出来的是世界时间。可以给函数传参数来获取本地时间:

select time(CURRENT_TIMESTAMP,‘localtime’);

select datetime(CURRENT_TIMESTAMP,‘localtime’)

Ubuntu Dash 无法搜索的问题
wordpress 固定连接使用标题的英文翻译
© 2026 WangZirui
Powered by Hexo & NexT.Mist
0%