time-difference-calculator
v0.0.4
Published
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.
Downloads
142
Maintainers
Readme
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
- Website: https://harikarthyk.xyz/
- Github: @HariKarthyk
- LinkedIn: @HariKarthyk
Show your support
Give a ⭐️ if this project helped you!