TimeStamp Difference Between Java and SQLite
Hello I have and SLQLite database in which I have table water_logs CREATE TABLE water_logs( _id INTEGER PRIMARY KEY AUTOINCREMENT, amount REAL NOT NULL, icon INTEGER NOT NULL, date INTEGER NOT NULL); I store date in milliseconds. Calendar cal = Calendar.getInstance(); cal.getTimeInMillis(); My problem is I want to get the day from the my date column using strftime function. The problem is tjat java calendar timestamp is different from SLQLite time stamp 1436859563832 --> result from cal.getTimeInMillis(); 1436607407--> SELECT strftime('%s','now') What I'm actually trying to do is to group