0.5.0 • Published 10 years ago

hijri v0.5.0

Weekly downloads
35
License
MIT
Repository
github
Last release
10 years ago

Gregorian To Hijri date convertor

This is a node module that allows you to convert Gregorian Dates to Hijri date with ease, also support day adjustments.

Usage

Installation

Install module using NPM

npm install hijri

Code Usage

var hijri = require('hijri');
//hijri.convert accepts 2 Arguments Date , Date Adjustment by days 
console.dir(hijri.convert(new Date(), 0));
Output
{ dayOfWeekText: 'الثلاثاء',
  dayOfWeek: 3,
  dayOfMonth: 18,
  month: 4,
  monthText: 'ربيع الآخر',
  year: 1435 }