Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.1.0
-
None
-
None
Description
PostgreSQL allow to specify direction in interval string by the `ago` word:
maxim=# select interval '@ 1 year 2 months 3 days 14 seconds ago';
interval
------------------------------------
-1 years -2 mons -3 days -00:00:14
See https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-INTERVAL-INPUT