sqlite:如何选择 current_timestamp 作为自 1970 年 1 月 1 日以来的毫秒值

eas*_*ter 5 sqlite current-time

sqlite> select typeof(date('now'));
text
sqlite> select typeof(current_time);
text
sqlite> select typeof(current_date);
text
Run Code Online (Sandbox Code Playgroud)

如何选择当前日期/时间作为自 1970 年 1 月 1 日以来的毫秒整数值?

CL.*_*CL. 6

strftime()只给你几秒:

SELECT strftime('%s', 'now') * 1000;
Run Code Online (Sandbox Code Playgroud)