countdown-date-time
v1.0.4
Published
A package for countdown date and time
Downloads
32
Maintainers
Readme
Countdown Conduct Date and Time
A Node.js package for calculating the countdown from the current date and time to a conduct date and time.
Installation
You can install the package via npm:
npm install countdown-date-time
# Usage
const { countDownDateAndTime } = require('countdown-date-time');
OR
import { countDownDateAndTime } from 'countdown-date-time';
// Specify the conduct date and time
const conduct_date = '2024-03-25 16:54:00';
// Calculate the time difference
const countDown = countDownDateAndTime(conduct_date);
// Log the result
console.log('Time Difference:', countDown);
Time Difference:
{
"days": 11,
"hours": 2,
"minutes": 9,
"seconds": 47
}
Replace '2024-03-14T12:00:00' with your conduct date and time . The countDownDateAndTime function will return an object containing the countdown in days, hours, minutes, and seconds.