Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20787#discussion_r176925842
  
    --- Diff: R/pkg/R/functions.R ---
    @@ -1957,8 +1958,12 @@ setMethod("levenshtein", signature(y = "Column"),
               })
     
     #' @details
    -#' \code{months_between}: Returns number of months between dates \code{y} 
and \code{x}.
    -#'
    +#' \code{months_between}: Returns number of months between dates \code{y} 
and \code{x}. 
    +#' If \code{y} is later than \code{x}, then the result is positive.
    +#' If \code{y} and \code{x} are on the same day of month, or both are the 
last day of month,
    +#' time of day will be ignored.
    +#' Otherwise, the difference is calculated based on 31 days per month, and 
rounded to
    +#' 8 digits.  
     #' @rdname column_datetime_diff_functions
    --- End diff --
    
    also just as reference, the whitespace/newline will be stripped
    
    ```
    time of day will be ignored.
    Otherwise
    ```


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to