Documentation

    make_timestamp

    Build a timestamp from a year, month, day, hour, minute and seconds.

    Try an expression

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

    Expression

    make_timestamp(1992, 9, 20, 13, 34, 27.123456)

    Result

    1992-09-20 13:34:27.123456

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

    Arguments and types

    make_timestamp(year, month, day, hour, minute, seconds)
    year
    Number
    month
    Number
    day
    Number
    hour
    Number
    minute
    Number
    seconds
    Number
    Supported signatures (2)
    make_timestamp(year: BIGINT) → TIMESTAMP
    make_timestamp(year: BIGINT, month: BIGINT, day: BIGINT, hour: BIGINT, minute: BIGINT, seconds: DOUBLE) → TIMESTAMP

    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 dates & timesDuckDB documentation

    Function metadata from DuckDB, used under the MIT license.