R/now_c.R

Defines functions now_c

Documented in now_c

#' Current time as character
#' @param format Defaults to %Y-%m-%d %H:%M:%S
#' @export
now_c <- function(format = "%Y-%m-%d %H:%M:%S"){
  format(Sys.time(), format)
}

Try the cstime package in your browser

Any scripts or data that you put into this service are public.

cstime documentation built on May 31, 2023, 9:27 p.m.