snowflake.snowpark.functions.getdate

snowflake.snowpark.functions.getdate() Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.42.0/src/snowflake/snowpark/_functions/scalar_functions.py#L320-L335)

Returns the current timestamp for the system in the local time zone.

Returns:

A Column with the current date and time.

Example:

>>> df = session.create_dataframe([1], schema=["a"])
>>> result = df.select(getdate()).collect()
>>> import datetime
>>> assert isinstance(result[0]["GETDATE()"], datetime.datetime)
Copy
Language: English