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

Function toSeconds

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

NumberInterface · 0.85
matchFunction · 0.70

Tested by

no test coverage detected