plusYears

open fun plusYears(years: Int): GlobalDateTime

Return a new dateTime which is the specified number of years ahead of this dateTime.

Return

A new dateTime which is the specified number of years ahead of this dateTime.

Parameters

years

Number of years to add. Can be negative, zero or positive.