-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add parts to Duration #15
Comments
Sure! Do you know why Java has duplicate method names here? Theirs docs are mostly copy/pastes, so I can just assume these methods are doing the same thing. The only difference being that the methods ending in |
The Example:
|
Oh right, this makes sense. I'll add both versions then! |
Implemented and released in 0.1.14! |
Hi! First of all thanks for the great work!
Would it be possible to add the following functions to the
Duration
class:toDaysPart()
toHoursPart()
toMinutesPart()
toSecondsPart()
toNanosPart()
They should mimic the behavior of java.time.Duration.
As far as I can see the logic is already implemented in the
__toString()
function, so it should be quite easy to extract into functions.The text was updated successfully, but these errors were encountered: