SystemClock
Ce contenu n’est pas encore disponible dans votre langue.
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.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SystemClock():
SystemClock
Returns
Section titled “Returns”SystemClock
Methods
Section titled “Methods”now():
number
Defined in: src/Clock.ts:43
Milliseconds since the Unix epoch.
Returns
Section titled “Returns”number
