Nota
L-aċċess għal din il-paġna jeħtieġ l-awtorizzazzjoni. Tista’ tipprova tidħol jew tibdel id-direttorji.
L-aċċess għal din il-paġna jeħtieġ l-awtorizzazzjoni. Tista’ tipprova tibdel id-direttorji.
Returns the current timestamp at the start of query evaluation.
For the corresponding Databricks SQL function, see now function.
Syntax
from pyspark.sql import functions as dbf
dbf.now()
Returns
pyspark.sql.Column: current timestamp at the start of query evaluation.
Examples
from pyspark.sql import functions as dbf
spark.range(1).select(dbf.now()).show(truncate=False)
+--------------------------+
|now() |
+--------------------------+
|2023-12-08 15:18:18.482269|
+--------------------------+