Gregorian.addYears

Overridden. Add the specified number of years to the given Time.

Note that the Gregorian calendar takes into account that BC time is negative, and supports crossing from BC to AD.

class Gregorian
override
Time
addYears
(
Time t
,
int nYears
)

Parameters

nYears int

The number of years to add. This can be negative.

Return Value

Type: Time

A Time that represents the provided time with the number of years added.

Meta