How to get last 24h entries based on linux timestamp in seconds ? like 1658754064 for example.
I tried
SELECT * from some_table
WHERE timestamp::DATE > (CURRENT_DATE - INTERVAL '1 day')
but I get cannot cast type bigint to date
error.
How to get last 24h entries based on linux timestamp in seconds ? like 1658754064 for example.
I tried
SELECT * from some_table
WHERE timestamp::DATE > (CURRENT_DATE - INTERVAL '1 day')
but I get cannot cast type bigint to date
error.