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

Function toMillis

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

Source from the content-addressed store, hash-verified

296 * @category getters
297 */
298export const toMillis = (self: DurationInput): number =>
299 match(self, {
300 onMillis: (millis) => millis,
301 onNanos: (nanos) => Number(nanos) / 1_000_000
302 })
303
304/**
305 * @since 2.0.0

Callers 1

Duration.tsFile · 0.70

Calls 2

NumberInterface · 0.85
matchFunction · 0.70

Tested by

no test coverage detected