pyflink.table.expressions.to_timestamp#
- to_timestamp(timestamp_str: str | Expression[str], format: str | Expression[str] | None = None) 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.
Added in version 1.12.0.