npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

gize-bet

v1.0.2

Published

A JavaScript library for converting Gregorian dates to Ethiopian dates and time

Readme

Gize Bet - Ethiopian Calendar Converter

A JavaScript library for converting Gregorian dates to Ethiopian dates and times (based on the Ethiopian calendar).


Installation

To install the package via NPM:

npm install gize-bet

Usage

Once installed, you can start using gize-bet to convert Gregorian dates to Ethiopian dates and time.

Importing the Library

const EthiopianCalendar = require("gize-bet");

Getting the Ethiopian Date and Time

To get the Ethiopian date and time for the current date and time:

const calendar = new EthiopianCalendar();
const currentDate = new Date();
const ethiopianDateTime = calendar.getEthiopianDateTime(currentDate);

console.log(ethiopianDateTime);

Output Example:

{
  ethiopianDate: "ሐሙስ, 1/4/2025",
  gregorianWeekday: "Sunday",
  ethiopianWeekday: "እሁድ",
  hours: 7,
  minutes: "00",
  seconds: "00",
  period: "AM",
  stringTime: "7:00:00 AM"
}

Methods

getEthiopianDateTime(date)

This method converts a given Gregorian date (JavaScript Date) into the Ethiopian date and time format.

Parameters:

  • date (Date): The Gregorian date you wish to convert.

Returns:

An object containing the following:

  • ethiopianDate: The Ethiopian date string in the format "Day, Day/Month/Year".
  • gregorianWeekday: The corresponding weekday in the Gregorian calendar.
  • ethiopianWeekday: The corresponding weekday in the Ethiopian calendar.
  • hours: Ethiopian hour (12-hour format).
  • minutes: Minutes of the time.
  • seconds: Seconds of the time.
  • period: "AM" or "PM".
  • stringTime: The Ethiopian time in the format hh:mm:ss AM/PM.

getEthiopianTime(date)

This method returns only the time part (Ethiopian time) for a given Gregorian Date.

Parameters:

  • date (Date): The Gregorian date you want to get the Ethiopian time for.

Returns:

An object containing:

  • hours: Ethiopian hour (12-hour format).
  • minutes: Minutes in two digits.
  • seconds: Seconds in two digits.
  • period: AM/PM.
  • stringTime: The Ethiopian time in the format hh:mm:ss AM/PM.

Example Usage

Here’s an example of using the library to get Ethiopian dates and time for specific dates:

const EthiopianCalendar = require("gize-bet");

const calendar = new EthiopianCalendar();

// Example 1: Get Ethiopian date and time for now
const now = new Date();
const ethiopianDateTime = calendar.getEthiopianDateTime(now);

console.log("Ethiopian Date and Time:", ethiopianDateTime);

// Example 2: Get Ethiopian time for now
const ethiopianTime = calendar.getEthiopianTime(now);
console.log("Ethiopian Time:", ethiopianTime.stringTime);

License

This project is licensed under the MIT License - see the LICENSE file for details.


Contributing

If you would like to contribute, feel free to fork this repository and create a pull request. Contributions, bug reports, and feature requests are welcome.


Acknowledgements

  • This library was inspired by the need to provide a JavaScript solution to convert Gregorian dates into Ethiopian calendar dates.
  • Special thanks to all contributors and users who make this package better.

Support

If you encounter any issues or have questions, feel free to open an issue in the GitHub repository.