sqlite> select typeof(date('now'));
text
sqlite> select typeof(current_time);
text
sqlite> select typeof(current_date);
text
How to select the current date/time as an integer value of milliseconds since Jan/1/1970?
sqlite> select typeof(date('now'));
text
sqlite> select typeof(current_time);
text
sqlite> select typeof(current_date);
text
How to select the current date/time as an integer value of milliseconds since Jan/1/1970?
strftime() gives you only seconds:
SELECT strftime('%s', 'now') * 1000;
From SQLite doc:
Compute the time since the unix epoch in seconds (like strftime('%s','now') except includes fractional part):
SELECT (julianday('now') - 2440587.5)*86400.0;
SELECT (julianday('now') - 2440587.5)*86400.0 * 1000;