Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
12 lines (9 sloc) 269 Bytes
title version signature
Years
1.6.0
moment.duration().years(); moment.duration().asYears();

As with the other getters for durations, moment.duration().years() gets the years.

moment.duration().asYears() gets the length of the duration in years.

You can’t perform that action at this time.