Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
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|
+--------------------------+