1.1.3 • Published 3 years ago

alfa-geez-node v1.1.3

Weekly downloads
15
License
MIT
Repository
github
Last release
3 years ago

semantic-release Build Status

Alfa Gee'z

Localization for Ethiopian date, time and number Nodejs implementation

alfa-geez is a light-weight package that makes an easy way for converting other calendar(date-time) to Ethiopic datetime. Currently alfa-aeez package supports conversion from

  • Gregorian Calendar
  • From Any time zone to Ethiopic time

Installation

Install via NPM:

$ npm install alfa-geez-node

Usage

node

var alfaGeez = require('alfa-geez-node');

var date = new Date();  // Create new date

var alfaGeezDatetime = new alfaGeez.DateTime(date);

var eth_datetime = alfaGeezDatetime.convert(
    local = alfaGeez.Local.ETHIOPIC,
    language = alfaGeez.Language.AMHARIC
);  // Return key-value paired datetime
// output => { year: 2012, month: 11, day: 2, hour: 11, minute: 45, second: 20 }

Local Resources List

  • Local.ETHIOPIC to Ethiopic date time
  • Local.GREGORIAN to Gregorian date time

Language Resources List

  • Langauge.ARABIC for Arabic Language
  • Langauge.COPTIC for Greek Language
  • Langauge.GEEZ for GEEZ Language
  • Langauge.ENGLISH for ENGLISH Language
  • Langauge.AMHARIC for AMHARIC Language
  • Langauge.TIGRINYA for TIGRINYA Language

Tests

$ npm test

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING

Credits

License

This project is licensed under the terms of the MIT license.

1.1.3

3 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago