snowflake.snowpark.functions.localtime

snowflake.snowpark.functions.localtime() Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.44.0/src/snowflake/snowpark/_functions/scalar_functions.py#L338-L352)

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
语言: 中文