postgresql interval '1 day code example
Example 1: postgresql today - 1 year
select now() - INTERVAL '1 YEAR';
Example 2: select current_timestamp - interval '3 days';
SELECT current_timestamp - interval "3 days";
-- 2020-06-24 08:25:31.759993 America/Los_Angeles