go-openapi / strfmt

openapi toolkit common string formats

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support long periods in Duration

fredbi opened this issue · comments

The go time.Duration is given to support periods up to 290 years.
Defining durations in months or years would be useful to me and spare me some internal modeling.

I now understand this cannot be achieved with the underlying time.Duration, which converts every thing into a fixed number of ns... Too bad.