[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › local‑first/Timestamp

Hybrid logical clock timestamps for CRDT ordering.

## Functions

| Function                                                                                                              | Description                                                                                                                                                                             |
| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [createInitialTimestamp](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/functions/createInitialTimestamp)       | -                                                                                                                                                                                       |
| [createTimestamp](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/functions/createTimestamp)                     | -                                                                                                                                                                                       |
| [receiveTimestamp](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/functions/receiveTimestamp)                   | -                                                                                                                                                                                       |
| [sendTimestamp](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/functions/sendTimestamp)                         | -                                                                                                                                                                                       |
| [timestampBytesToTimestamp](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/functions/timestampBytesToTimestamp) | -                                                                                                                                                                                       |
| [timestampToDateIso](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/functions/timestampToDateIso)               | Convert a [Timestamp](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/variables/Timestamp) to an ISO 8601 [DateIso](https://evolu.dev/docs/api-reference/common/Type/variables/DateIso) string. |
| [timestampToTimestampBytes](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/functions/timestampToTimestampBytes) | -                                                                                                                                                                                       |

## Interfaces

| Interface                                                                                                                      | Description                                                     |
| ------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------- |
| [Timestamp](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/interfaces/Timestamp)                                         | Hybrid Logical Clock timestamp.                                 |
| [TimestampConfig](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/interfaces/TimestampConfig)                             | -                                                               |
| [TimestampConfigDep](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/interfaces/TimestampConfigDep)                       | -                                                               |
| [TimestampCounterOverflowError](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/interfaces/TimestampCounterOverflowError) | Base interface for objects with a discriminant `type` property. |
| [TimestampDriftError](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/interfaces/TimestampDriftError)                     | Base interface for objects with a discriminant `type` property. |
| [TimestampTimeOutOfRangeError](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/interfaces/TimestampTimeOutOfRangeError)   | Base interface for objects with a discriminant `type` property. |

## Type Aliases

| Type Alias                                                                                         | Description                                                                                                             |
| -------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| [Counter](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/type-aliases/Counter)               | -                                                                                                                       |
| [NodeId](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/type-aliases/NodeId)                 | A NodeId uniquely identifies an owner's device. Generated once per device using cryptographic randomness.               |
| [TimestampBytes](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/type-aliases/TimestampBytes) | Sortable bytes representation of [Timestamp](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/variables/Timestamp). |
| [TimestampError](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/type-aliases/TimestampError) | -                                                                                                                       |

## Variables

| Variable                                                                                                            | Description                                                                                                                                                              |
| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [Counter](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/variables/Counter)                                   | -                                                                                                                                                                        |
| [defaultTimestampMaxDrift](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/variables/defaultTimestampMaxDrift) | Default value for [TimestampConfig.maxDrift](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/interfaces/TimestampConfig#maxdrift).                                  |
| [eqTimestamp](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/variables/eqTimestamp)                           | Equality function for comparing [Timestamp](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/variables/Timestamp).                                                   |
| [maxCounter](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/variables/maxCounter)                             | -                                                                                                                                                                        |
| [maxNodeId](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/variables/maxNodeId)                               | -                                                                                                                                                                        |
| [minCounter](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/variables/minCounter)                             | -                                                                                                                                                                        |
| [minNodeId](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/variables/minNodeId)                               | -                                                                                                                                                                        |
| [NodeId](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/variables/NodeId)                                     | A NodeId uniquely identifies an owner's device. Generated once per device using cryptographic randomness.                                                                |
| [orderTimestampBytes](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/variables/orderTimestampBytes)           | An [Order](https://evolu.dev/docs/api-reference/common/Order/type-aliases/Order) for [TimestampBytes](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/variables/TimestampBytes). |
| [Timestamp](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/variables/Timestamp)                               | Hybrid Logical Clock timestamp.                                                                                                                                          |
| [TimestampBytes](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/variables/TimestampBytes)                     | Sortable bytes representation of [Timestamp](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/variables/Timestamp).                                                  |
| [timestampBytesLength](https://evolu.dev/docs/api-reference/common/local-first/Timestamp/variables/timestampBytesLength)         | -                                                                                                                                                                        |