Skip to content

sqlte datetime中localtime参数

vm3725 edited this page Jun 2, 2015 · 1 revision

用datetime('now')往SQLite里插入当前时间或者sql中时间比较时,都会少8个小时,sqlite默认用的是格林威治时区,使用datetime('now','localtime')来获取我们当前时区的时间,或者用datetime('now','+8 hour'),因为中国使用的是东八区时间 strftime 也是这样的

目录

###Wiki相关###

  • [wiki常用编辑格式](wiki edit)

###异常汇总###

  • [ java.lang.IllegalArgumentException: contentIntent required](contentIntent required)

###自定义控件###

###Android 源码相关###

  • [资源](android source res)
  • [编译](android source make)

###代码基础库###

  • [下载器](android code download)
  • [Net](android code net)
  • [File](android code file)

###研发工具###

  • [Nodejs + mysql + webstorm](Nodejs + mysql + webstorm)

Clone this wiki locally