News for hackers. Stuff that matters.
Re:PostgreSQL's Missing DateDiff Function by brandmeyer on Tuesday December 21, 2021 @06:12PM (#29643277)
Why would you want this to round up instead of down or to nearest?
Re:PostgreSQL's Missing DateDiff Function by wongarsu on Tuesday December 21, 2021 @06:18PM (#29643328)
It's not even rounded up, datediff('years', 2020-01-01, 2021-12-31) returns 1.

I'm not sure what it's used for though