The previous day

yesterday(tzone = "")

Arguments

tzone

a character vector specifying which time zone you would like to find the previous date of. tzone defaults to the system time zone set on your computer.

Value

the previous date as a Date object

See also

Examples

yesterday()
#> [1] "2022-03-22"
yesterday("UTC")
#> [1] "2022-03-22"