Nota
Capaian ke halaman ini memerlukan kebenaran. Anda boleh cuba mendaftar masuk atau menukar direktori.
Capaian ke halaman ini memerlukan kebenaran. Anda boleh cuba menukar direktori.
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|
+--------------------------+