Closed lukasmalkmus closed 1 year ago
Sounds good!
If you want to I can give a naive PR a try?
Hi Lukas, I have an implementation for this, currently is the long format 2w0d0h0m0s
but I is possible return the short form 2w
, I need to go home to make a PR. Thanks for the interest to contribute, I hope this will be released in this week.
Added in v2.1.0
, thanks for the proposal Lukas 🚀
Damn, that was fast! Nice one and thank you!
This is the current situation:
It would be nice to have
str2duration.String(t time.Duration) string
:Or to align with Go's output format (but that looks rather ugly):