MCPcopy Index your code
hub / github.com/Effect-TS/effect / formatIso

Function formatIso

packages/effect/src/Duration.ts:958–961  ·  view source on GitHub ↗
(self: DurationInput)

Source from the content-addressed store, hash-verified

956 * @category conversions
957 */
958export 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`.

Callers

nothing calls this directly

Calls 3

isFiniteFunction · 0.85
unsafeFormatIsoFunction · 0.85
decodeFunction · 0.70

Tested by

no test coverage detected