Skip to content
Roundate provides rounding functions for JavaScript Date objects.
CoffeeScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
docs
lib
spec
src
.gitignore
.travis.yml
Cakefile
MIT-LICENSE.txt
README.md
package.json

README.md

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

Something went wrong with that request. Please try again.