The date x years hence

years_hence(years = 0, tzone = "")

Arguments

years

an integer specifying the number of days to add to the current

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 date, x years from now

Examples

years_hence(1)
#> [1] "2023-03-23"
years_hence(2000)
#> [1] "4022-03-23"