0

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.

François Richard
  • 6,817
  • 10
  • 43
  • 78

0 Answers0