🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

ethiopian-date

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethiopian-date

A date converter from Ethiopian calendar to Gregorian calendar and vice-versa.

latest
Source
npmnpm
Version
0.0.6
Version published
Weekly downloads
350
-19.91%
Maintainers
2
Weekly downloads
 
Created
Source

Ethiopian Date Converter

Build Status

Introduction

ethiopian-date is a date converter from Ethiopian calendar to Gregorian calendar and vice-versa. It is a port from @rgaudin's ethiopian_date python module.

Installation

npm install this package:

$ npm install ethiopian-date --save

Usage

Include it in your project:

var ethiopianDate = require('ethiopian-date');

ethiopian-date currently supports two function calls.

  • To convert Gregorian dates to Ethiopian, call:
ethiopianDate.toEthiopian(YYYY, MM, DD)

with return type array [YYYY, MM, DD]

  • To convert Ethiopian dates to Gregorian, call:
ethiopianDate.toGregorian(YYYY, MM, DD)

with return type array [YYYY, MM, DD]

Resources

Keywords

Ethiopian

FAQs

Package last updated on 18 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts