Skip to content

Commit d021210

Browse files
committed
Change comment for date_format
1 parent 45bb8f1 commit d021210

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/core/src/main/scala/org/apache/spark/sql/functions.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2634,8 +2634,8 @@ object functions {
26342634
* See [[java.time.format.DateTimeFormatter]] for valid date and time format patterns
26352635
*
26362636
* @param dateExpr A date, timestamp or string. If a string, the data must be in a format that
2637-
* can be cast to a timestamp, such as `yyyy-MM-dd` or `yyyy-MM-dd HH:mm:ss.SSSS`
2638-
* @param format A pattern `dd.MM.yyyy` would return a string like `18.03.1993`
2637+
* can be cast to a timestamp, such as `uuuu-MM-dd` or `uuuu-MM-dd HH:mm:ss.SSSS`
2638+
* @param format A pattern `dd.MM.uuuu` would return a string like `18.03.1993`
26392639
* @return A string, or null if `dateExpr` was a string that could not be cast to a timestamp
26402640
* @note Use specialized functions like [[year]] whenever possible as they benefit from a
26412641
* specialized implementation.

0 commit comments

Comments
 (0)