method Duration.prototype.toYears
Duration.prototype.toYears(): Years

Converts the duration to years.

Return Type

Usage

import { Duration } from ".";