Documentation

    uuid_extract_timestamp

    Extract the timestamp for the given UUID v7.

    Try an expression

    In Formula, enter the expression and set Output type to TIMESTAMP WITH TIME ZONE.

    Expression

    uuid_extract_timestamp('01965bfd-2b56-7a0a-9c2f-49a449a84527'::UUID)

    Result

    2025-04-22 05:34:00.534+00

    To use your own data, replace the example values with column names. Keep format strings and other options as written.

    Arguments and types

    uuid_extract_timestamp(uuid)
    uuid
    UUID
    Supported signatures (1)
    uuid_extract_timestamp(uuid: UUID) → TIMESTAMP WITH TIME ZONE

    The result type can depend on the input types. See DuckDB for the full argument rules.

    Things to know

    If the first argument is missing, the result is NULL.

    Browse conversion & identifiersDuckDB documentation

    Function metadata from DuckDB, used under the MIT license.