sqlite - SQLite3 on windows: Convert epoch to normal time -


i trying convert following timestamp(in milliseconds since epoch) normal date-time. using sqlite3 on windows xp.

i using query: select datetime((timestamp/86400000)+25569) table;

(timestamp column name contains values 1289325613669,1289325823860, 1289327180545).

i dont seem getting right values. doing wrong?

do this:

select datetime('1289325613', 'unixepoch'); 

the unixepoch modifier expects value in seconds.

currently, provide datetime interpreted julian day number.

the reference date , time functions here


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -