Permalink
af21059 Mar 10, 2017
2 contributors

Users who have contributed to this file

@ichernev @fbonzon
18 lines (12 sloc) 381 Bytes
title signature
Duration Format
npm install moment-duration-format

This is a plugin that will allow comprehensive formatting of Moment Durations.

For example,

moment.duration(123, "minutes").format("h:mm");
// "2:03"

The repository is located at github.com/jsmreese/moment-duration-format.