Years
javascript
dayjs.duration().years();
dayjs.duration().asYears();As with the other getters for durations, dayjs.duration().years() gets the years.
dayjs.duration().asYears() gets the length of the duration in years.
