Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time.Duration support for days notation #188

Open
naueramant opened this issue Jan 4, 2021 · 0 comments
Open

time.Duration support for days notation #188

naueramant opened this issue Jan 4, 2021 · 0 comments

Comments

@naueramant
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant