sqlite 格式化时间戳 strftime

创建日期: 2025-02-07 16:49 | 作者: 风波 | 浏览次数: 25 | 分类: SQL

来源:https://stackoverflow.com/questions/33114055/how-to-convert-timestamp-to-string-in-sqlite

SELECT
  date raw,
  strftime('%d-%m-%Y', datetime(date/1000, 'unixepoch', 'localtime')) as_string
FROM my_table

datetime 函数的参数

来源:https://www.sqlite.org/lang_datefunc.html

25 浏览
17 爬虫
0 评论