Add support for a "d" suffix that corresponds to 24 hours. Also add more test cases and slightly refactor the code.
This type of support has been requested and rejected by the Go team (https://github.com/golang/go/issues/11473). Their push back was around "how long is a day?", but for our users I think defining a day as 24 hours is fine, and convenient for longer duration TTLs, e.g. root keys that are valid for 90 days.
Add support for a "d" suffix that corresponds to 24 hours. Also add more test cases and slightly refactor the code.
This type of support has been requested and rejected by the Go team (https://github.com/golang/go/issues/11473). Their push back was around "how long is a day?", but for our users I think defining a day as 24 hours is fine, and convenient for longer duration TTLs, e.g. root keys that are valid for 90 days.