nooschain / time/clock / Clock
Interface: Clock
Defined in: time/clock.ts:9
Minimal clock interface used anywhere code needs the current time.
Methods
now()
now():
Date
Defined in: time/clock.ts:11
Returns the current time as a Date object.
Returns
Date
nowIso()
nowIso():
string
Defined in: time/clock.ts:15
Returns the current time as an ISO string.
Returns
string
nowMs()
nowMs():
number
Defined in: time/clock.ts:13
Returns the current time as epoch milliseconds.
Returns
number