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

Function toDays

packages/effect/src/Duration.ts:880–886  ·  view source on GitHub ↗
(self: Input)

Source from the content-addressed store, hash-verified

878 * @since 3.8.0
879 */
880export const toDays = (self: Input): number =>
881 match(fromInputUnsafe(self), {
882 onMillis: (millis) => millis / 86_400_000,
883 onNanos: (nanos) => Number(nanos) / 86_400_000_000_000,
884 onInfinity: () => Infinity,
885 onNegativeInfinity: () => -Infinity
886 })
887
888/**
889 * Converts a Duration to weeks.

Callers

nothing calls this directly

Calls 3

fromInputUnsafeFunction · 0.85
matchFunction · 0.70
NumberInterface · 0.70

Tested by

no test coverage detected