1.0.2 • Published 7 years ago

dateround v1.0.2

Weekly downloads
10
License
-
Repository
github
Last release
7 years ago

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"

Downloads and Documentation