Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
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|
+--------------------------+