dateround

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i dateround

Weekly Downloads

2

Version

1.0.2

License

none

Last publish

Collaborators

  • danielkalen