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

Argument order to functions for rounding of time types #34969

Closed
baggepinnen opened this issue Mar 3, 2020 · 1 comment
Closed

Argument order to functions for rounding of time types #34969

baggepinnen opened this issue Mar 3, 2020 · 1 comment
Labels
dates Dates, times, and the Dates stdlib module

Comments

@baggepinnen
Copy link
Contributor

most numbers are rounded like this

round(TargetType, value)

but time-related types are rounded like this

round(value, TargetType)
#example 
julia> round(Millisecond(1000*3600*24*1.5), Day)
2 days
@ararslan ararslan added the dates Dates, times, and the Dates stdlib module label Mar 3, 2020
@dkarrasch
Copy link
Member

x-refs: #34782, #18574

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dates Dates, times, and the Dates stdlib module
Projects
None yet
Development

No branches or pull requests

4 participants