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

Function toMillis

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

Source from the content-addressed store, hash-verified

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

Callers 1

Duration.tsFile · 0.70

Calls 2

NumberInterface · 0.85
matchFunction · 0.70

Tested by

no test coverage detected