pyflink.table.expressions.to_timestamp#
- to_timestamp(timestamp_str: Union[str, pyflink.table.expression.Expression[str]], format: Optional[Union[str, pyflink.table.expression.Expression[str]]] = None) pyflink.table.expression.Expression [source]#
Converts the date time string with the given format (by default: ‘yyyy-MM-dd HH:mm:ss’) under the ‘UTC+0’ time zone to a timestamp.
- Parameters
timestamp_str – The date time string
format – The format of the string
- Returns
The date value with TIMESTAMP type.
New in version 1.12.0.