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

Function toHours

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

NumberInterface · 0.85
matchFunction · 0.70

Tested by

no test coverage detected