(self: DurationInput)
| 956 | * @category conversions |
| 957 | */ |
| 958 | export const formatIso = (self: DurationInput): Option.Option<string> => { |
| 959 | const duration = decode(self) |
| 960 | return isFinite(duration) ? Option.some(unsafeFormatIso(duration)) : Option.none() |
| 961 | } |
| 962 | |
| 963 | /** |
| 964 | * Parses an ISO8601 duration string into a `Duration`. |
nothing calls this directly
no test coverage detected