I have set my time as US Locale.I have made database in Sqlite.In database i have fields like Entry_Date which set as CURRENT_TIMESTAMP..Now i run query like
SELECT time('now')
o/p: 06:22:09
It display wrong time.so my question is How do i set the Sqlite time?
You need to pass the
localtimemodifier to thetimefunction.See Date and Time Functions
Update: For the record, here’s how to output a unix epoch date: