timestamp(
args
: {lix
:Pick
<Lix
,"sqlite"
|"db"
|"hooks"
>; }):string
Returns the current timestamp as an ISO 8601 string.
In deterministic mode, returns logical timestamps starting from Unix epoch (1970-01-01T00:00:00.000Z), incrementing by 1ms per call. In normal mode, returns the current system time.
lix_deterministic_sequence_number
createdAt
fields, TTL calculations, time-ordered queriesParameter | Type | Description |
---|---|---|
args | { lix : Pick <Lix , "sqlite" | "db" | "hooks" >; } | - |
args.lix | Pick <Lix , "sqlite" | "db" | "hooks" > | The Lix instance with sqlite and db connections |
string
ISO 8601 timestamp string