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

snowflake.snowpark.functions.localtime

snowflake.snowpark.functions.localtime() Column[source]

Returns the current time for the system.

Returns:

A Column with the current local time.

Example:

>>> import datetime
>>> result = session.create_dataframe([1]).select(localtime()).collect()
>>> assert isinstance(result[0]["LOCALTIME()"], datetime.time)
Copy