Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xgheaven/dater
a javascript date library, even can replace raw date object.
https://github.com/xgheaven/dater
Last synced: about 1 month ago
JSON representation
a javascript date library, even can replace raw date object.
- Host: GitHub
- URL: https://github.com/xgheaven/dater
- Owner: XGHeaven
- Created: 2015-07-06T16:27:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-30T05:44:31.000Z (over 9 years ago)
- Last Synced: 2024-11-29T09:40:54.192Z (about 1 month ago)
- Language: HTML
- Size: 195 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dater
[![Build Status](https://travis-ci.org/XGHeaven/dater.svg?branch=develop)](https://travis-ci.org/XGHeaven/dater)
[![Coverage Status](https://coveralls.io/repos/XGHeaven/dater/badge.svg?branch=master&service=github)](https://coveralls.io/github/XGHeaven/dater?branch=master)[![NPM](https://nodei.co/npm/dater.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/dater/)
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
- yearusage:
```
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