TO_TIMESTAMP
Converts the input expressions to the corresponding timestamp.
Syntax
TO_TIMESTAMP(numeric_expression double) → timestamp
numeric_expression: A Unix epoch timestamp.
Examples
TO_TIMESTAMP example
TO_TIMESTAMP(string_expression varchar, format varchar, replaceErrorWithNull int32) → timestamp
string_expression: The string from which to extract the timestamp.
format: String to specify format of the timestamp.
replaceErrorWithNull: If 0, the function will fail when given malformed input. If 1, the function will return NULL when given malformed input.
Examples
TO_TIMESTAMP example
TO_TIMESTAMP(numeric_expression int64) → timestamp
numeric_expression: A Unix epoch timestamp.
Examples
TO_TIMESTAMP example
TO_TIMESTAMP(numeric_expression int32) → timestamp
numeric_expression: A Unix epoch timestamp.
Examples
TO_TIMESTAMP example
TO_TIMESTAMP(numeric_expression float) → timestamp
numeric_expression: A Unix epoch timestamp.
Examples
TO_TIMESTAMP example
TO_TIMESTAMP(string_expression varchar, format varchar) → timestamp
string_expression: String from which to extract the timestamp.
format: String to specify format of the timestamp.
Examples
TO_TIMESTAMP example
Last updated