Mark Wyszomierski wrote:
You may want
WHERE julianday(date('now')) - julianday(date(arrival_date)) > 7
Mark,
You should still use the 'localtime' modifier on the 'now' value if your
timestamps are local time since 'now' always returns UTC times.
WHERE julianday(date('now', 'localtime')) - julianday(date(arrival_date)) > 7
鍢垮樋錛岀湅鏉ュ鏋滄兂寰楀埌涓涓鍚堟湰鏈哄尯鍩熻緗殑褰撳墠鏃墮棿錛屽繀欏葷敤date鍑芥暟鏉ヨ漿鎹紝
浣哾ate鍙嚱鏁板彧榪斿洖褰撳墠鏃ユ湡錛岃屾垜闇瑕佺殑鏄繑鍥炲綋鍓嶆棩鏈熷強(qiáng)鏃墮棿錛屾墍浠ヨ繖閲屾妸瀹冩崲鎴恉atetime鍑芥暟錛屽嵆錛?br />datetime(CURRENT_TIMESTAMP,'localtime')
浠ヤ笅鏄痵qlite涓嬫祴璇曠殑杈撳嚭淇℃伅錛?br />sqlite> select CURRENT_TIMESTAMP;
2006-06-18 09:23:36
sqlite> select datetime(CURRENT_TIMESTAMP,'localtime');
2006-06-18 17:23:44
sqlite>

]]>