snowflake.snowpark.functions.getdate¶
- snowflake.snowpark.functions.getdate() Column [source]¶
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)