We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, would it be possible to add the following methods to the Duration class:
Duration
toDaysPart()
toHoursPart()
toMinutesPart()
toSecondsPart()
toNanosPart()
They should mimic the behavior of java.time.Duration (they extract the "part" information of the respective unit). Example:
const d = Duration.parse("PT1H30M20S"); //1 hour, 30 minutes, 20 seconds d.toHours(); // 1 d.toHoursPart(); // 1 d.toMinutes(); // 90 d.toMinutesPart(); // 30 d.seconds(); // 5420 d.toSecondsPart(); // 20
The text was updated successfully, but these errors were encountered:
Yes, since it is part of the threeten API we would accept pull requests for it.
Sorry, something went wrong.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days.
No branches or pull requests
Hi, would it be possible to add the following methods to the
Duration
class:toDaysPart()
toHoursPart()
toMinutesPart()
toSecondsPart()
toNanosPart()
They should mimic the behavior of java.time.Duration (they extract the "part" information of the respective unit). Example:
The text was updated successfully, but these errors were encountered: