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

Function toMinutes

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

Source from the content-addressed store, hash-verified

832 * @since 3.8.0
833 */
834export const toMinutes = (self: Input): number =>
835 match(fromInputUnsafe(self), {
836 onMillis: (millis) => millis / 60_000,
837 onNanos: (nanos) => Number(nanos) / 60_000_000_000,
838 onInfinity: () => Infinity,
839 onNegativeInfinity: () => -Infinity
840 })
841
842/**
843 * Converts a Duration to hours.

Callers

nothing calls this directly

Calls 3

fromInputUnsafeFunction · 0.85
matchFunction · 0.70
NumberInterface · 0.70

Tested by

no test coverage detected