ChronosChronos

addYears

Adds years and returns a new immutable Chronos instance.

addYears()

Adds years and returns a new immutable Chronos instance.

Signature

addYears(years: number): Chronos

Parameters

  • years: Number of years to add

Return Type

Chronos - New instance with added years

Example

playground.ts

Alternative

  • You can also use add method as original.add(1, 'year').

Last updated: Thu, May 21, 2026 12:57:11PM (UTC)

On this page