durafmt
https://github.com/hako/durafmt
Go
:clock8: Better time duration formatting in Go!
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Go not yet supported3 Subscribers
Add a CodeTriage badge to durafmt
Help out
- Issues
- fix: prevent negative duration mutation and fix zero international duration
- feat: support shorthand formatting without spaces between numbers and units
- Render zero durations in InternationalString
- format: add LimitFirstAdjacentN to limit to sequential time units
- fix: keep Format from mutating negative durations
- Keep the sign when a negative duration is formatted twice
- CompactString: short units with no number/unit space
- fix: do not append "s" plural suffix to non-ASCII unit names
- Add month to units?
- How to ignore the milliseconds and microseconds ?
- Docs
- Go not yet supported