Dates and timesPostgreSQL only
MAKE_INTERVAL
Builds an interval from separate numbers: years, months, days, hours.
Syntax
MAKE_INTERVAL(<unit> => <amount>, …)
Handy when a duration is stored as a number or calculated. The arguments are named, so you give only the ones you need, and the rest are zero. Unlike gluing text together, (n || ' days')::interval, you don't have to think about the format. Units: years, months, weeks, days, hours, mins, secs.