by teddyh · 4y ago · 0 comments
> request_timeout = 10
> Accept one of these instead:
> request_timeout = 10s
> request_timeout_seconds = 10
What does ”s” imply? Can I write “10m” for 10 minutes, or is that 10 months? Non-standardized syntax is dangerous.
For config files, I use RFC 3339 duration syntax; i.e. “PT5M” for five minutes. It was the most standardized syntax for semi-human readable time periods which I could find.
`s` is actually one of the SI base units: https://en.wikipedia.org/wiki/International_System_of_Units#...
edit: actually, month should never be used for the case described anyway... 28-31 days?
Funny, I would interpret a month as 30 days (since the lunar cycle is slightly over 29.5 days).