Skip to content

Instantly share code, notes, and snippets.

@gnosek
Created March 3, 2017 10:27
Show Gist options
  • Save gnosek/bd9bfedc09526e3aa74d9cc239306636 to your computer and use it in GitHub Desktop.
Save gnosek/bd9bfedc09526e3aa74d9cc239306636 to your computer and use it in GitHub Desktop.
29 days > 30 days
select current_timestamp - '2017-02-02 04:05'::timestamp, age('2017-02-02 04:05'::timestamp) > '30 days'::interval;
?column? | ?column?
------------------------+----------
29 days 07:24:08.72743 | t
(1 row)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment