Moment.js Plugin Tiny Duration
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Readme.md
moment.tinyDuration.js

Readme.md

Usage: moment.duration(moment().from(otherMoment)).tinyDuration();

Returns a tiny string such as "10S" (ten seconds), "2D" (two days), "3W" (three weeks)