years_hence: The date x years hence

View source: R/instants.R

years_henceR Documentation

The date x years hence

Description

The date x years hence

Usage

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)
years_hence(2000)

ellisvalentiner/lubridateExtras documentation built on March 31, 2022, 8:52 a.m.