countdown-date-time

1.0.4 • Public • Published

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.

Package Sidebar

Install

npm i countdown-date-time

Weekly Downloads

5

Version

1.0.4

License

ISC

Unpacked Size

2.49 kB

Total Files

4

Last publish

Collaborators

  • habeel