MCPcopy Create free account
hub / github.com/Effect-TS/effect / toSeconds

Function toSeconds

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

Source from the content-addressed store, hash-verified

309 * @category getters
310 */
311export const toSeconds = (self: DurationInput): number =>
312 match(self, {
313 onMillis: (millis) => millis / 1_000,
314 onNanos: (nanos) => Number(nanos) / 1_000_000_000
315 })
316
317/**
318 * @since 3.8.0

Callers

nothing calls this directly

Calls 2

NumberInterface · 0.85
matchFunction · 0.70

Tested by

no test coverage detected