-
Notifications
You must be signed in to change notification settings - Fork 149
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
Default largestUnit to the largest non-zero unit #980
Comments
More or less. Here's the planned behavior from #856:
@ryzokuken, does this proposed behavior above match what you had in mind?
Not sure. @ptomato is closer to this problem as he's implementing the changes agreed in #856 (comment), so he'll likely have a more informed opinion. One caveat might be that there's some special-casing around weeks (see #856 (comment)) that probably means that the inputs to a "classic, deterministic balance algorithm" might require a boolean |
What needs to be done in this issue? |
Mainly docs I think, and verify that the spec and polyfill uses this behavior. |
I'm not 100% sure what "this behavior" is — does it apply only to Duration methods with a largestUnit parameter? |
AFAIK this is correct: AFAIK, this issue is part of #856 and can be closed, unless it's better to leave this open because #856 includes a bunch of other stuff too. The balancing.md page has already been updated for #856 behavior, and docs for |
In #1071 I've made a separate abstract operation out of the logic described here, and it's used in Duration's round, add, and subtract methods, so I'll close this. |
From #978 (comment),
/cc @sffc @justingrant
The text was updated successfully, but these errors were encountered: