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

    https://github.com/apache/spark/pull/18114#discussion_r123327963
  
    --- Diff: R/pkg/R/functions.R ---
    @@ -1801,29 +1819,18 @@ setMethod("to_json", signature(x = "Column"),
                 column(jc)
               })
     
    -#' to_timestamp
    -#'
    -#' Converts the column into a TimestampType. You may optionally specify a 
format
    -#' according to the rules in:
    +#' @section Details:
    +#' \code{to_timestamp}: Converts the column into a TimestampType. You may 
optionally specify
    +#' a format according to the rules in:
     #' 
\url{http://docs.oracle.com/javase/tutorial/i18n/format/simpleDateFormat.html}.
     #' If the string cannot be parsed according to the specified format (or 
default),
     #' the value of the column will be null.
     #' By default, it follows casting rules to a TimestampType if the format 
is omitted
     #' (equivalent to \code{cast(df$x, "timestamp")}).
     #'
    -#' @param x Column to parse.
    -#' @param format string to use to parse x Column to TimestampType. 
(optional)
    -#'
    -#' @rdname to_timestamp
    -#' @name to_timestamp
    -#' @family date time functions
    -#' @aliases to_timestamp,Column,missing-method
    +#' @rdname column_datetime_functions
    +#' @aliases to_timestamp to_timestamp,Column,missing-method
     #' @export
    -#' @examples
    -#' \dontrun{
    -#' to_timestamp(df$c)
    -#' to_timestamp(df$c, 'yyyy-MM-dd')
    --- End diff --
    
    Added back.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to