dater
a full human utils for date
Last updated 4 years ago by xgheaven .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dater 
SYNC missed versions from official npm registry.

Dater

Build Status Coverage Status

NPM

This is a library for date in javascript. You can use it like raw Date build in javascript. Even, you can use this to replace raw Date.

var Date = require('dater');

API

  • microsecond
  • second
  • minute
  • hour
  • day
  • month
  • year

usage:

var Date = require('dater');
var date = new Date();

date.day(); // get day
date.day(2); // set day
date.day(-1); // change to yeaterday.
date.day('+1'); // change to tomorrow
// others alse like this
// usage like jQuery api

Update

  • 0.1.1
    • add some test
    • update some file
    • fix some bugs

Current Tags

  • 0.1.1                                ...           latest (4 years ago)

2 Versions

  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (3)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |