Coder Social home page Coder Social logo

hindi-dates's Introduction

hindi-dates

This package provides a simple and convenient way to get the current date and time in Hindi using the Day.js library.

Installation

To install the package, use the following command:

$ npm install hindi-dates

or

$ yarn add hindi-dates

Usage

To use the package, import the getHindiDates function and call it as shown below:

import { getHindiDates } from "hindi-dates";

const { dateInHindi, timeInHindi } = getHindiDates();

console.log(`Current Date in Hindi: ${dateInHindi}`);
console.log(`Current Time in Hindi: ${timeInHindi}`);

Example output

Current Date in Hindi: ग्यारह फ़रवरी दो हज़ार चौबीस
Current Time in Hindi: छह बजकर तैंतालीस मिनट

Notes

The package uses the Day.js library for date and time formatting. The package includes translations for numbers, months, and other constants in Hindi.

Open source

Feel free to use and modify the package according to your needs. If you encounter any issues or have suggestions for improvement, please open an issue on the GitHub repository.

hindi-dates's People

Contributors

jaykalia007 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.