Ctrl+K
Logo image Logo image

Site Navigation

  • API Reference
  • Examples

Site Navigation

  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
    • TableEnvironment
    • Table
    • Data Types
    • Window
    • Expressions
    • User Defined Functions
    • Descriptors
    • StatementSet
    • Catalog
  • PyFlink DataStream
  • PyFlink Common

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.

previous

pyflink.table.expressions.temporal_overlaps

next

pyflink.table.expressions.timestamp_diff

Show Source

Created using Sphinx 4.5.0.