Wondering what’s next for npm?Check out our public roadmap! »

    travel-time

    1.1.0 • Public • Published

    Travel Time Calculate

    Installation

    npm i travel-time

    Example

    const travelTime = require('travel-time');
     
    let t1 = {
        hours: 2,
        minutes: 25,
        secondes: 50
    };
     
    let t2 = {
        hours: 3,
        minutes: 22,
        secondes: 33
    };
     
    console.log(travelTime.calculate(t1, t2));

    Result

    node example.js
    { hours: 5, minutes: 48, secondes: 23 }

    Keywords

    Install

    npm i travel-time

    DownloadsWeekly Downloads

    4

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    3.54 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar