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

Function toDays

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

Source from the content-addressed store, hash-verified

339 * @category getters
340 */
341export const toDays = (self: DurationInput): number =>
342 match(self, {
343 onMillis: (millis) => millis / 86_400_000,
344 onNanos: (nanos) => Number(nanos) / 86_400_000_000_000
345 })
346
347/**
348 * @since 3.8.0

Callers

nothing calls this directly

Calls 2

NumberInterface · 0.85
matchFunction · 0.70

Tested by

no test coverage detected