I have an Integer field in which I save the dates expressed as ticks.
Everything is ok.
But how is it possible to filter for milliseconds?
I get properly:
==================
* Minutes > 24 *
==================
SELECT * FROM [MyTable] WHERE strftime('%M', datetime([DTField]/1000, 'unixepoch')) > '24'
22/01/2000 23:55:10:000 Code: 2
02/09/1999 11:25:50:500 Code: 3
12/10/1492 14:59:59:000 Code: 5
But:
SELECT strftime('%f', datetime([DTField], 'unixepoch')) FROM [MyTable]
returns all "12.000"
Everything is ok.
But how is it possible to filter for milliseconds?
I get properly:
==================
* Minutes > 24 *
==================
SELECT * FROM [MyTable] WHERE strftime('%M', datetime([DTField]/1000, 'unixepoch')) > '24'
22/01/2000 23:55:10:000 Code: 2
02/09/1999 11:25:50:500 Code: 3
12/10/1492 14:59:59:000 Code: 5
But:
SELECT strftime('%f', datetime([DTField], 'unixepoch')) FROM [MyTable]
returns all "12.000"
Last edited: