The date x decades ago

decades_ago(decades = 0, tzone = "")

Arguments

decades

an integer specifying the number of decades to subtract from the current date

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 decades ago

Examples

decades_ago(1)
#> [1] "2012-03-23"
decades_ago(2000)
#> [1] "-17978-03-23"