R/print_date.R

Defines functions date_formats print_date

Documented in date_formats print_date

#' Print the current date in a pretty format
#'
#' @return string
#' @export
#'
#' @examples
#' print_date()
print_date <- function() {
  d <- date()
  month <- substr(d,5,7)
  day <- substr(d,9,10)
  year <- substr(d,21,24)
  paste(day,month,year)
}

#' Open Date Formatting \code{man} page.
#'
#' Because I always forget.
#'
#' @export
#' @importFrom utils help
date_formats <- function() {

  utils::help(strptime, package = "base")

}
jimbrig/jimstools documentation built on Sept. 12, 2022, 12:08 p.m.