nooschain / time/clock / SystemClock
Class: SystemClock
Defined in: time/clock.ts:19
Clock implementation backed by the host system clock.
Implements
Constructors
Constructor
new SystemClock():
SystemClock
Returns
SystemClock
Methods
now()
now():
Date
Defined in: time/clock.ts:21
Returns a fresh Date from the host system clock.
Returns
Date
Implementation of
nowIso()
nowIso():
string
Defined in: time/clock.ts:31
Returns the host system time as an ISO timestamp.
Returns
string
Implementation of
nowMs()
nowMs():
number
Defined in: time/clock.ts:26
Returns epoch milliseconds from the host system clock.
Returns
number