Skip to content

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

Notifications You must be signed in to change notification settings

Harikarthyk/time-difference-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

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!

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published