envconfig icon indicating copy to clipboard operation
envconfig copied to clipboard

time.Duration support for days notation

Open naueramant opened this issue 4 years ago • 0 comments

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.

naueramant avatar Jan 04 '21 12:01 naueramant