to_timestamp
Convert seconds since 1970-01-01 to a timestamp with time zone.
Try an expression
In Formula, enter the expression and set Output type to TIMESTAMP WITH TIME ZONE.
Expression
to_timestamp(1284352323.5)Result
2010-09-13 04:32:03.5+00To use your own data, replace the example values with column names. Keep format strings and other options as written.
Arguments and types
to_timestamp(sec)- sec
- Number
Supported signatures (1)
to_timestamp(sec: DOUBLE) → TIMESTAMP WITH TIME ZONEThe 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.
Function metadata from DuckDB, used under the MIT license.