uuid contains a millisecond unix timestamp and an optional sub-millisecond fraction.
This fraction is used to construct the timestamp.
uuid_timestamp_micros.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Extract a Postgres timestamp from a version 7 UUID
uuid contains a millisecond unix timestamp and an optional sub-millisecond fraction.
This fraction is used to construct the timestamp.
uuid_timestamp_micros.
SELECT uuid_timestamp('019913ce-f124-7835-96c7-a2df691caa98');
uuid_timestamp
----------------------------
2025-09-04 10:19:13.316+02
SELECT uuid_timestamp(
uuid = <uuid>
);
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
uuid | UUID | - | ✔ | The UUID object to extract the timestamp from |
| Column | Type | Description |
|---|---|---|
uuid_timestamp | TIMESTAMPTZ | The timestamp extracted from the UUIDv7 object with millisecond precision. |