powered by
cur_date provides a relaxed version of Sys.time() that is sufficient for most purposes.
cur_date
Sys.time()
cur_date(rev = FALSE, sep = "-")
Boolean: Reverse from "yyyy-mm-dd" to "dd-mm-yyyy" format? Default: rev = FALSE.
rev = FALSE
Character: Separator to use. Default: sep = "-".
sep = "-"
cur_date returns Sys.time() (in " using current system settings.
By default, this corresponds to the " format used as the ISO 8601 standard.
For more options, see the date() and Sys.Date() functions of base R and the plethora of formatting options for Sys.time().
date()
Sys.Date()
date() and today() functions of the lubridate package; date(), Sys.Date(), and Sys.time() functions of base R.
today()
Other date and time functions: cur_time(), what_date(), what_day(), what_month(), what_time(), what_week(), what_year()
cur_time()
what_date()
what_day()
what_month()
what_time()
what_week()
what_year()
# NOT RUN { cur_date() cur_date(sep = "/") cur_date(rev = TRUE) cur_date(rev = TRUE, sep = ".") # }
Run the code above in your browser using DataLab