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

Function toHours

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

Source from the content-addressed store, hash-verified

326 * @category getters
327 */
328export const toHours = (self: DurationInput): number =>
329 match(self, {
330 onMillis: (millis) => millis / 3_600_000,
331 onNanos: (nanos) => Number(nanos) / 3_600_000_000_000
332 })
333
334/**
335 * @since 3.8.0

Callers

nothing calls this directly

Calls 2

NumberInterface · 0.85
matchFunction · 0.70

Tested by

no test coverage detected