# NOT RUN {
what_day()
what_day(abbr = TRUE)
what_day(when = Sys.time()) # with POSIXct time
# with date vector (as characters):
ds <- c("2020-01-01", "2020-02-29", "2020-12-24", "2020-12-31")
what_day(when = ds)
what_day(when = ds, abbr = TRUE)
# with time vector (strings of POSIXct times):
ts <- c("2020-12-25 10:11:12 CET", "2020-12-31 23:59:59")
what_day(ts)
# }
Run the code above in your browser using DataLab