uuid contains a millisecond unix timestamp and an optional sub-millisecond fraction.
uuid_timestamp, the microsecond part of uuid is used to construct a
timestamp with microsecond precision.
Unless uuid is known to encode a valid sub-millisecond fraction, use uuid_timestamp.
Samples
Arguments
The syntax is:| Name | Type | Default | Required | Description |
|---|---|---|---|---|
uuid | UUID | - | ✔ | The UUID object to extract the timestamp from |
Returns
| Column | Type | Description |
|---|---|---|
uuid_timestamp_micros | TIMESTAMPTZ | The timestamp extracted from the UUIDv7 object with microsecond precision. |