Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 1.29 KB

README.md

File metadata and controls

52 lines (32 loc) · 1.29 KB

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!