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

Function setTime

packages/effect/src/TestClock.ts:502–509  ·  view source on GitHub ↗
(input: DateTime.DateTime.Input)

Source from the content-addressed store, hash-verified

500 * @since 2.0.0
501 */
502export const setTime = (input: DateTime.DateTime.Input): Effect.Effect<void> =>
503 testClockWith((testClock) =>
504 testClock.setTime(
505 typeof input === "number"
506 ? input
507 : DateTime.unsafeMake(input).epochMillis
508 )
509 )
510
511/**
512 * Semantically blocks the current fiber until the clock time is equal to or

Callers

nothing calls this directly

Calls 2

testClockWithFunction · 0.85
setTimeMethod · 0.65

Tested by

no test coverage detected