-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Question: Right way to turn a Duration into milliseconds? #10679
Comments
I guess that's not well-defined? import times
var a = initDuration(months = 2)
echo a.days() |
Uh sorry, a Duration cannot have months. Still, given leap seconds, anything above minutes could not be convertible exactly |
@andreaferretti The reason that I implemented |
To be honest, maybe the conversion shorthands should just be deprecated and we can add a proc |
I think a better option would be to create a |
Yeah give us |
This does what the documentation says it would do, I guess, but how to accomplish what I'm trying to do?
Outputs: 0
Expected: 2000
The text was updated successfully, but these errors were encountered: