Commit ca6893e
committed
vendor/go-units: align HumanDuration rounding with Desktop behavior
Sync vendored HumanDuration semantics with docker/go-units PR #51:
- add shared unit constants and roundDuration helper
- round day/week/month/year outputs consistently
- switch threshold checks to duration-based cutovers
Add vendored duration tests covering boundary transitions and expected
example outputs to guard against regressions in CREATED formatting.
Refs: #68911 parent a9031f4 commit ca6893e
2 files changed
Lines changed: 161 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments