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

Function toWeeks

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

Source from the content-addressed store, hash-verified

346 * @category getters
347 */
348export const toWeeks = (self: DurationInput): number =>
349 match(self, {
350 onMillis: (millis) => millis / 604_800_000,
351 onNanos: (nanos) => Number(nanos) / 604_800_000_000_000
352 })
353
354/**
355 * Get the duration in nanoseconds as a bigint.

Callers

nothing calls this directly

Calls 2

NumberInterface · 0.85
matchFunction · 0.70

Tested by

no test coverage detected