pflag icon indicating copy to clipboard operation
pflag copied to clipboard

Support `d` for days in time.Duration parsing?

Open hyorigo opened this issue 2 years ago • 1 comments

FR.

hyorigo avatar Mar 10 '22 07:03 hyorigo

From time.Hour:

There is no definition for units of Day or larger to avoid confusion across daylight savings time zone transitions.

See the Monotonic Clocks section in the documentation of the standard time package for more details, and hopefully that will help you to understand why d is ambiguous.

memreflect avatar Apr 28 '22 16:04 memreflect