roundate

0.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

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i roundate

    Weekly Downloads

    1

    Version

    0.0.2

    License

    none

    Last publish

    Collaborators

    • jingoro