Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    duration-calculatorpublic

    duration-calculator

    viktort

    Build Status

    shackpank (fork)

    Build Status

    A module for calculating the duration between two given dates, irrespective of the order.

    Usage

    If you have npm installed

    $ npm install duration-calculator

    Inside a js file:

    var durationCalculator = require('duration-calculator');
     
    var duration = durationCalculator.calculate(date1, date2);
     
    console.log('Duration = ' + duration);

    Keywords

    none

    install

    npm i duration-calculator

    Downloadsweekly downloads

    10

    version

    0.0.4

    license

    none

    last publish

    collaborators

    • avatar