API reference@evolu/common › local‑first/Timestamp

Hybrid logical clock timestamps for CRDT ordering.

Functions

FunctionDescription
createInitialTimestamp-
createTimestamp-
receiveTimestamp-
sendTimestamp-
timestampBytesToTimestamp-
timestampToDateIsoConvert a Timestamp to an ISO 8601 DateIso string.
timestampToTimestampBytes-

Interfaces

InterfaceDescription
TimestampHybrid Logical Clock timestamp.
TimestampConfig-
TimestampConfigDep-
TimestampCounterOverflowErrorBase interface for objects with a discriminant type property.
TimestampDriftErrorBase interface for objects with a discriminant type property.
TimestampTimeOutOfRangeErrorBase interface for objects with a discriminant type property.

Type Aliases

Type AliasDescription
Counter-
NodeIdA NodeId uniquely identifies an owner's device. Generated once per device using cryptographic randomness.
TimestampBytesSortable bytes representation of Timestamp.
TimestampError-

Variables

VariableDescription
Counter-
defaultTimestampMaxDriftDefault value for TimestampConfig.maxDrift.
eqTimestampEquality function for comparing Timestamp.
maxCounter-
maxNodeId-
minCounter-
minNodeId-
NodeIdA NodeId uniquely identifies an owner's device. Generated once per device using cryptographic randomness.
orderTimestampBytesAn Order for TimestampBytes.
TimestampHybrid Logical Clock timestamp.
TimestampBytesSortable bytes representation of Timestamp.
timestampBytesLength-