{"repo":"xsoh/moment-hijri","free":true,"listed":false,"github":"https://github.com/xsoh/moment-hijri","clone":"git clone https://github.com/xsoh/moment-hijri.git","description":"A Hijri calendar (Based on Umm al-Qura calculations) plugin for moment.js","language":"JavaScript","stars":231,"topics":["hijri","hijri-calendar","moment","javascript","lunar","calendar","moment-hijri"],"license":"MIT","category":"productivity","readme_excerpt":"[![NPM version][npm-version-image]][npm-url] [![MIT License][license-image]][license-url] moment-hijri ============== A Hijri (Based on Umm al-Qura calculations) calendar system plugin for moment.js. About ----- Hijri is the Islamic lunar calendar used by Muslims to determine the proper days on which to observe the annual fasting, to attend Hajj, and to celebrate other Islamic holidays and festivals. More information about Hijri can be found at wikipedia. This plugin adds Hijri calendar support to momentjs library. Calendar conversion is based on the Umm al-Qura calculations. Upgrading to 3.0.0 [31-Oct-2024 of 28-Rabii 2-1446] --------------- Adjusted dates has been changed to match ummalqura:- - 1446-05-29 (old 30) - 1446-06-30 (old 29) - 1485-09-29 (old 30) - 1485-10-30 (old 29) Upgrading to 2.0.0 --------------- Because of Using 'h' specifier might cause overlap with hour's specifier, the specifier has been changed from h to i as a prefix. For example in the previous version to get the four digit year, hYYYY will be used. In version 2.0 or above it should be replaced by iYYYY . Where to use it? --------------- Like momentjs , moment-hijri works in browser and in Node.js. Node.js Browser Require.js API --- This plugin tries to mimic momentjs api. Basically, when formatting or parsing a string, add an i to the format token such as 'iYYYY' or 'iM'. For example: To use the Arabic locale: - Load moment-with-locales. - Set the global or local locale to ar-SA see here. - use it n","default_branch":null,"files":null,"tree":[],"storefront":"/r/xsoh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xsoh/moment-hijri/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}