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

Function toWeeks

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

Source from the content-addressed store, hash-verified

349 * @category getters
350 */
351export const toWeeks = (self: DurationInput): number =>
352 match(self, {
353 onMillis: (millis) => millis / 604_800_000,
354 onNanos: (nanos) => Number(nanos) / 604_800_000_000_000
355 })
356
357/**
358 * 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