Permalink
b8f0565 Jun 6, 2014
13 lines (9 sloc) 278 Bytes
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.