API reference / @evolu/common / Time / createTime

Function: createTime()

function createTime(): Time;

Defined in: packages/common/src/Time.ts:21

Creates a Time using Date.now().

If the system clock is misconfigured (out of allowed range), the application will fail with an assertion error. This is intentional - there's no reasonable fallback when the system clock is fundamentally wrong.

Returns

Time

Was this page helpful?