Skip to main content
Ctrl+K
PyFlink 1.20+vvr.11.7.dev0 documentation - Home PyFlink 1.20+vvr.11.7.dev0 documentation - Home
  • API Reference
  • Examples
  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
    • TableEnvironment
    • Table
    • Data Types
    • Window
    • Expressions
    • User Defined Functions
    • Descriptors
    • StatementSet
    • Catalog
  • PyFlink DataStream
  • PyFlink DataFrame
  • PyFlink Common
  • API Reference
  • PyFlink Table
  • Expressions
  • pyflink.table.expressions.to_timestamp

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.

previous

pyflink.table.expressions.to_date

next

pyflink.table.expressions.to_timestamp_ltz

On this page
  • to_timestamp()

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.