Permalink
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 271 Bytes
title version signature
Days
1.6.0
moment.duration().days(); moment.duration().asDays();

As with the other getters for durations, moment.duration().days() gets the days (0 - 29).

moment.duration().asDays() gets the length of the duration in days.