Skip to content

time.Duration support for days notation #188

@naueramant

Description

@naueramant

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions