Enter a query, then click the execute button or press F9 to run
it.
CREATE TABLE IF NOT EXISTS datetime_text (d1 text, d2 text);
DATETIME('now');
DATETIME('now','localtime');
INSERT INTO datetime_text (d1, d2) VALUES ( datetime('now'), datetime('now', 'localtime') );
SELECT d1, typeof(d1), d2, typeof(d2) FROM datetime_text;
CREATE TABLE IF NOT EXISTS datetime_real (d1 real);
INSERT INTO datetime_real (d1) VALUES (julianday('now'));
SELECT d1 FROM datetime_real;
SELECT date(d1), time(d1) FROM datetime_real;
CREATE TABLE IF NOT EXISTS datetime_int (d1 int);
INSERT INTO datetime_int (d1) VALUES (strftime('%s','now'));
SELECT d1 FROM datetime_int;
SELECT datetime(d1,'unixepoch') FROM datetime_int;