pyflink.table.expressions.date_format#
- date_format(timestamp, format) pyflink.table.expression.Expression [source]#
Formats a timestamp as a string using a specified format. The format must be compatible with MySQL’s date formatting syntax as used by the date_parse function.
For example date_format(col(“time”), “%Y, %d %M”) results in strings formatted as “2017, 05 May”.
- Parameters
timestamp – The timestamp to format as string.
format – The format of the string.
- Returns
The formatted timestamp as string.
New in version 1.12.0.