Skip to main content
Since 2.23.0 Create a UUIDv7 object from a timestamp for use in range queries. ts is converted to a UNIX timestamp split into millisecond and sub-millisecond parts. UUIDv7 microseconds The random bits of the UUID are set to zero in order to create a “lower” boundary UUID. For example, you can use the returned UUIDs to find all rows with UUIDs where the timestamp is less than the boundary UUID’s timestamp.

Samples

  • Create a boundary UUID from a timestamp:
    Returns something like:
  • Use a boundary UUID to find all UUIDs with a timestamp below '2025-09-04 10:00':

Arguments

The syntax is:

Returns