Pular para o conteúdo
Português (BR)

SystemClock

Este conteúdo não está disponível em sua língua ainda.

Defined in: src/Clock.ts:42

The wall clock, for everything that is not a test.

Exists so a component can take a Clock without every production call site having to write { now: () => Date.now() }, and so the default is a named thing that shows up in a stack rather than an anonymous literal.

new SystemClock(): SystemClock

SystemClock

now(): number

Defined in: src/Clock.ts:43

Milliseconds since the Unix epoch.

number

Clock.now