ts is converted to a UNIX timestamp split into millisecond and sub-millisecond parts.
Samples
Arguments
The syntax is:| Name | Type | Default | Required | Description |
|---|---|---|---|---|
ts | TIMESTAMPTZ | - | ✔ | The timestamp used to return a UUIDv7 object |
Create a version 7 UUID from a Postgres timestamp
ts is converted to a UNIX timestamp split into millisecond and sub-millisecond parts.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
ts | TIMESTAMPTZ | - | ✔ | The timestamp used to return a UUIDv7 object |