API reference › @evolu/common › local‑first/Timestamp
Hybrid logical clock timestamps for CRDT ordering.
Functions
| Function | Description |
|---|---|
| createInitialTimestamp | - |
| createTimestamp | - |
| receiveTimestamp | - |
| sendTimestamp | - |
| timestampBytesToTimestamp | - |
| timestampToDateIso | Convert a Timestamp to an ISO 8601 DateIso string. |
| timestampToTimestampBytes | - |
Interfaces
| Interface | Description |
|---|---|
| Timestamp | Hybrid Logical Clock timestamp. |
| TimestampConfig | - |
| TimestampConfigDep | - |
| TimestampCounterOverflowError | Base interface for objects with a discriminant type property. |
| TimestampDriftError | Base interface for objects with a discriminant type property. |
| TimestampTimeOutOfRangeError | Base interface for objects with a discriminant type property. |
Type Aliases
| Type Alias | Description |
|---|---|
| Counter | - |
| NodeId | A NodeId uniquely identifies an owner's device. Generated once per device using cryptographic randomness. |
| TimestampBytes | Sortable bytes representation of Timestamp. |
| TimestampError | - |
Variables
| Variable | Description |
|---|---|
| Counter | - |
| defaultTimestampMaxDrift | Default value for TimestampConfig.maxDrift. |
| eqTimestamp | Equality function for comparing Timestamp. |
| maxCounter | - |
| maxNodeId | - |
| minCounter | - |
| minNodeId | - |
| NodeId | A NodeId uniquely identifies an owner's device. Generated once per device using cryptographic randomness. |
| orderTimestampBytes | An Order for TimestampBytes. |
| Timestamp | Hybrid Logical Clock timestamp. |
| TimestampBytes | Sortable bytes representation of Timestamp. |
| timestampBytesLength | - |