-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Added support for ceil and floor in roundToNearestMinutes #3091
Added support for ceil and floor in roundToNearestMinutes #3091
Conversation
@Balastrong |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A good idea 🙏
Please change this function to use the existing rounding options.
Ah I was doing some research for #3092 but I didn't mean to commit them on this branch, I'll remove that commit. |
2647827
to
239f9dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This PR fixed #3063
Added an optional field to options on
roundToNearestMinutes
to toggle betweenMath.floor
andMath.ceil
, with default onfloor
.