snowflake.snowpark.functions.to_time¶ snowflake.snowpark.functions.to_time(e: ColumnOrName, fmt: Column | None = None) → Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.3.0/src/snowflake/snowpark/functions.py#L2204-L2214)¶ Converts an input expression into the corresponding time. Example: CopyExpand>>> df = session.create_dataframe(['04:15:29.999'], schema=['a']) >>> df.select(to_time(col("a"))).collect() [Row(TO_TIME("A")=datetime.time(4, 15, 29, 999000))] Show lessSee moreScroll to top