-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
trunc/floor/ceil/round interface inconsistency for methods involving dates? #18574
Comments
I modelled the function signatures for For this reason, when we're looking at So I think the existing signature is sensible for two reasons: (1) it reads the way one would say it (e.g., |
The idea is that |
Much thanks for the lucid explanation @spurll! Best! |
trunc
methods typically conform totrunc([T,] x, [digits, [base]])
--- except where they involveDate
s/DateTime
s:trunc
methods that accept a date type / value pair take the formtrunc(x, T)
rather thantrunc(T, x)
. Should these non-conforming methods conform? Apologies if I missed a good reason for this inconsistency while searching, and please close if so. Best!Edit: The same holds for at least some
floor
,ceil
, andround
methods involving dates.The text was updated successfully, but these errors were encountered: