Add Years

dtt_add_years(x, n = 1L, ...)

Arguments

x

A Date or POSIXct vector.

n

An integer of the number of years to add

...

Unused.

Value

The modified Date or POSIXct vector.

Examples

dtt_add_years(Sys.time())
#> [1] "2021-03-05 13:39:59 PST"