Package Exports
- dateround
- dateround/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dateround) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Roundate
Roundate provides rounding functions for JavaScript Date objects.
Example
Roundate = require('roundate');
var date = new Date('Sat, 05 Mar 2011 12:13:23 GMT'),
rounded = Roundate.round(date, 'day');
console.log( rounded.toUTCString() ); // "Sun, 06 Mar 2011 00:00:00 GMT"