time-difference-calculator

0.0.4 • Public • Published

Welcome to time-difference-calculator 👋

Version License: ISC

Time difference calculator, This helps in calculating the time difference between two dates and return result like 2 days ago, 45 mins ago and just now.

Install

npm install time-difference-calculator

Usage

import {timeDifferenceCalculator} from 'time-difference-calculator';

const date1 = "27/09/2021";
const date2 = "28/09/2021";

console.log('---Time Difference Between Given Date and Current Date---');

console.log(timeDifferenceCalculator(date1));


console.log('---Time Difference Between Two Given Dates---');

console.log(timeDifferenceCalculator(date1, date2));

Author

👤 Hari Karthyk

Show your support

Give a ⭐️ if this project helped you!

Package Sidebar

Install

npm i time-difference-calculator

Weekly Downloads

81

Version

0.0.4

License

ISC

Unpacked Size

2.49 kB

Total Files

3

Last publish

Collaborators

  • harikarthyk