(self: DurationInput)
| 965 | * @category conversions |
| 966 | */ |
| 967 | export const formatIso = (self: DurationInput): Option.Option<string> => { |
| 968 | const duration = decode(self) |
| 969 | return isFinite(duration) ? Option.some(unsafeFormatIso(duration)) : Option.none() |
| 970 | } |
| 971 | |
| 972 | /** |
| 973 | * Parses an ISO8601 duration string into a `Duration`. |
nothing calls this directly
no test coverage detected