Right now the time.Duration field can only parse the units supported by time.Parse which is "ns", "us" (or "µs"), "ms", "s", "m", "h".
Would there be an interest in adding support for days? This would make some real world configurations such as "365d" instead of "9125h" a lot more readable.
Right now the time.Duration field can only parse the units supported by time.Parse which is "ns", "us" (or "µs"), "ms", "s", "m", "h".
Would there be an interest in adding support for days? This would make some real world configurations such as "365d" instead of "9125h" a lot more readable.