snowflake.snowpark.functions.systimestamp

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

Returns the current timestamp for the system.

Parameters:

_emit_ast (bool, optional) – Whether to emit the abstract syntax tree (AST). Defaults to True.

Returns:

A Column with the current system timestamp.

Example:

>>> df = session.create_dataframe([1], schema=["a"])
>>> result = df.select(systimestamp()).collect()
>>> import datetime
>>> assert isinstance(result[0]["SYSTIMESTAMP()"], datetime.datetime)
Copy