You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Duration: ISO 8601 format/parse and a Schema codec (exact units only) #9888
v3 had Duration.formatIso, Duration.fromIso and Duration.unsafeFormatIso (#4343, for #4319). v4 dropped them, and the migration guide says to "retain a local formatter" or use a separate ISO parser.
ISO 8601 durations are a common wire format: OpenAPI format: duration, config files (timeout: PT30S), Temporal.Duration#toString(). In v4 each app needs its own parser, and there is no Schema codec.
v3 also treated a year as 365 days and a month as 30 days, so P1M was wrong for most months.
What is the feature you are proposing to solve the problem?
Activity
fubhy commentedon Oct 24, 2026
Yes. Tbh. this was probably removed in error.