snowflake.snowpark.functions.getdate¶
- snowflake.snowpark.functions.getdate() Column [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.39.1/src/snowflake/snowpark/_functions/scalar_functions.py#L319-L337)¶
Returns the current timestamp for the system in the local time zone.
- Parameters:
_emit_ast (bool, optional) – Whether to emit the abstract syntax tree (AST). Defaults to True.
- 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)