date-calculator

1.0.3 • Public • Published

DateCalculator

DateCalculator is a calculator for Date object.

Installation

Node.js npm install date-calculator

Usage

Node.js

var DateCalculator = require('date-calculator');

In Browser

<script src="date-calculator.js"></script>

Example

var dc = new DateCalculator(new Date(2018,7,9));
dc.sub(new Date(2018,7,3)); // -> Object {days: 6, months: 0, weeks: 1, years: 0}

Copyright

Copyright (c) 2018-2020 Hyunjin Lee. See LICENSE for further details.

Package Sidebar

Install

npm i date-calculator

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

168 kB

Total Files

9

Last publish

Collaborators

  • hjleesm