R/sys-date.R

Defines functions dtt_sys_date

Documented in dtt_sys_date

#' Get System Date
#'
#' @param tz A string of the time zone.
#' @return A floored Date scalar.
#' @export
#'
#' @examples
#' \dontrun{
#' dtt_set_default_tz("Etc/GMT+12")
#' dtt_sys_date()
#' dtt_set_default_tz("Etc/GMT-12")
#' dtt_sys_date()
#' dtt_sys_date(tz = "Etc/GMT+12")
#' }
dtt_sys_date <- function(tz = dtt_default_tz()) {
  dtt_date(dtt_sys_date_time(tz = tz))
}

Try the dttr2 package in your browser

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

dttr2 documentation built on July 10, 2020, 5:06 p.m.