Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arabiaweather/hijri-date
Gregorian to Hijri Date Convertor for NodeJS
https://github.com/arabiaweather/hijri-date
Last synced: 3 months ago
JSON representation
Gregorian to Hijri Date Convertor for NodeJS
- Host: GitHub
- URL: https://github.com/arabiaweather/hijri-date
- Owner: arabiaweather
- License: mit
- Created: 2014-05-17T18:15:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-11T13:29:14.000Z (over 8 years ago)
- Last Synced: 2024-10-24T13:14:29.848Z (3 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 17
- Watchers: 3
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-jordan - hijri-date - convert Gregorian Dates to Hijri date. (NodeJS / Gists)
README
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
```javascript
npm install hijri
```#### Code Usage
```javascript
var hijri = require('hijri');
//hijri.convert accepts 2 Arguments Date , Date Adjustment by days
console.dir(hijri.convert(new Date(), 0));
```
##### Output
```console
{ dayOfWeekText: 'الثلاثاء',
dayOfWeek: 3,
dayOfMonth: 18,
month: 4,
monthText: 'ربيع الآخر',
year: 1435 }
```