title | version | signature |
---|---|---|
Hours |
1.6.0 |
moment.duration().hours();
moment.duration().asHours();
|
As with the other getters for durations, moment.duration().hours()
gets the hours (0 - 23).
moment.duration().asHours()
gets the length of the duration in hours.