Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading documentation in the date package #558

Open
oguzyildizz opened this issue May 16, 2022 · 1 comment
Open

Misleading documentation in the date package #558

oguzyildizz opened this issue May 16, 2022 · 1 comment

Comments

@oguzyildizz
Copy link

Hi, in this README table, it shows this:

Slick Oper/Function PG Oper/Function Description Example Result
age age age(timestamp[, timestamp]) age(timestamp '2001-04-10', timestamp '1957-06-13') 43 years 9 mons 27 days

shouldn't the result be negative? If I understand correctly, the age function does "param2 - param1" when there are 2 parameters (basically param2 is "now" by default?)

@tminglei
Copy link
Owner

Well, I just copied it from postgresql.org (https://www.postgresql.org/docs/14/functions-datetime.html).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants