moment-rcf
This is a plugin for moment.js. It implements the methods round(), ceil() and floor() which can be used for hours, minutes, seconds and milliseconds.
Usage
var moment = ;;var m = ;m ); // 25.02.2017 02:50:00.000m ); // 25.02.2017 02:55:00.000m ); // 25.02.2017 02:50:00.000m ); // 25.02.2017 05:00:00.000
Installation
npm install moment-rcf
Testing
npm test