@@ -2949,10 +2949,10 @@ object functions {
29492949 def unix_timestamp (s : Column , p : String ): Column = withExpr { UnixTimestamp (s.expr, Literal (p)) }
29502950
29512951 /**
2952- * Converts to a timestamp by casting rules to `TimestampType`.
2952+ * Converts to a timestamp by casting rules to `TimestampType` in the seconds precision .
29532953 *
29542954 * @param s A date, timestamp or string. If a string, the data must be in a format that can be
2955- * cast to a timestamp, such as `yyyy-MM-dd` or `yyyy-MM-dd HH:mm:ss.SSSS `
2955+ * cast to a timestamp, such as `yyyy-MM-dd` or `yyyy-MM-dd HH:mm:ss`
29562956 * @return A timestamp, or null if the input was a string that could not be cast to a timestamp
29572957 * @group datetime_funcs
29582958 * @since 2.2.0
@@ -2962,12 +2962,12 @@ object functions {
29622962 }
29632963
29642964 /**
2965- * Converts time string with the given pattern to timestamp.
2965+ * Converts time string with the given pattern to timestamp in the seconds precision .
29662966 *
29672967 * See [[java.text.SimpleDateFormat ]] for valid date and time format patterns
29682968 *
29692969 * @param s A date, timestamp or string. If a string, the data must be in a format that can be
2970- * cast to a timestamp, such as `yyyy-MM-dd` or `yyyy-MM-dd HH:mm:ss.SSSS `
2970+ * cast to a timestamp, such as `yyyy-MM-dd` or `yyyy-MM-dd HH:mm:ss`
29712971 * @param fmt A date time pattern detailing the format of `s` when `s` is a string
29722972 * @return A timestamp, or null if `s` was a string that could not be cast to a timestamp or
29732973 * `fmt` was an invalid format
0 commit comments