Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 409 Bytes
title version signature
As Unit of Time

As an alternate to Duration#asX, you can use Duration#as('x'). All the shorthand keys from moment#add apply here as well.'hours');'minutes');'seconds');'milliseconds');

Invalid durations return NaN for all units.

You can’t perform that action at this time.