You are viewing documentation about an older version (1.4.0). View latest version

snowflake.snowpark.functions.is_time¶

snowflake.snowpark.functions.is_time(col: ColumnOrName) → Column[source]¶

Returns true if the specified VARIANT column contains a TIME value.

Example:

>>> import datetime
>>> from snowflake.snowpark.functions import to_variant, is_time
>>> df = session.create_dataframe([[datetime.time(10, 10), "X"]], schema=["a", "b"])
>>> df.select(is_time(to_variant("a")).as_("a"), is_time(to_variant("b")).as_("b")).collect()
[Row(A=True, B=False)]
Copy