datejs / Datejs

A JavaScript Date and Time Library
Other
1.89k stars 486 forks source link

Non-Gregorian dates especially Hijri date (new feature) #101

Open Ashamandi opened 7 years ago

Ashamandi commented 7 years ago

DateJs is supporting Gregorian date only ... what about other non-gregorian dates ?

for example, Many Arabic countries (like Saudi Arabia) use Hijri calendar ( wiki link ) in their daily activities which totally has different calculation than the Gregorian one so I think it is very important to have a hijri date object to easily make calculations on it like you do at Gregorian date.

if you have the interest, let's discuss how to support it.

Ashamandi commented 6 years ago

Any comment here please?

I am a Bidi developer at Globalization team - IBM Egypt, My team is responsible to support globalize and bidi features at open source technologies that IBM Products use and this feature is very important for us to solve many issues we face at supporting national calendars in many open sources that directly/indirectly use Date js object like (D3, NVD3, Brunel).

Please take a look at this issue https://github.com/d3/d3-time/issues/23, This proves that if we support non-gregorian date here "@ DateJs" we can easily remove many obstacles at D3 as an example.