Code: Select all
SELECT Artist, SongTitle, julianday(LastTimePlayed), julianday('now') FROM Songs WHERE (julianday('now') - (julianday(LastTimePlayed) +2415018.5 )) < 1
order by lasttimeplayed desc
# ARTIST SONGTITLE JULIANDAY(LASTTIMEPLAYED) JULIANDAY('NOW')
01 Free All Right Now 39479.603586782 2454498.35428228
02 Bad Company Movin' On 39479.600706806 2454498.3542811
03 Foreigner Hot Blooded 39479.598400718 2454498.35428119
04 Journey Wheel In The Sky 39479.595390625 2454498.35428557
05 Foreigner Cold As Ice 39479.592743704 2454498.35428095
06 Golden Earring Radar Love 39479.590484664 2454498.3542812
07 Grand Funk Railroad We're an American Band 39479.586068993 2454498.3542812
08 The Doobie Brothers China Grove 39479.583491956 2454498.35428104
09 The Allman Brothers Band Ramblin' Man 39479.581266331 2454498.35428563
10 The Doobie Brothers Black Water 39479.57757228 2454498.35428086
These are songs just played.. shouldn't the 'now' field be nearly the same as the last played field?