0.0.4 ā€¢ Published 2 years ago

time-difference-calculator v0.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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!