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 |
Returns
| Column | Type | Description |
|---|---|---|
to_uuidv7 | UUID | A UUIDv7 object created from the input timestamp with random bits. |