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

Function toHours

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

Source from the content-addressed store, hash-verified

961 * @since 3.8.0
962 */
963export const toHours = (self: Input): number =>
964 match(fromInputUnsafe(self), {
965 onMillis: (millis) => millis / 3_600_000,
966 onNanos: (nanos) => nanosToUnit(nanos, 3_600_000_000_000),
967 onInfinity: () => Infinity,
968 onNegativeInfinity: () => -Infinity
969 })
970
971/**
972 * Converts a Duration to days.

Callers

nothing calls this directly

Calls 3

nanosToUnitFunction · 0.85
matchFunction · 0.70
fromInputUnsafeFunction · 0.70

Tested by

no test coverage detected