R/zz-deprecated-data-utils.R
time_to_date.Rd
time_to_date( timepoints, unit = attr(timepoints, "unit"), day_zero = getOption("day_zero", "2019-12-29") )
a set of numeric time points
the period / unit of the time points, which will be extracted from timepoints if possible
the zero day of the time series, will be extracted from timepoints if possible
a vector of dates
# DEPRECATED # times = date_to_time(as.Date("2019-12-29")+0:100, "1 week") # dates = time_to_date(times)