# Hijri calendar

**URL:** <https://discourse.julialang.org/t/hijri-calendar/73700>\
**Category:** Offtopic\
**Tags:** question, package\
**Created:** [December 28, 2021, 11:44am UTC](https://discourse.julialang.org/t/hijri-calendar/73700 "2021-12-28T11:44:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jafar.isbarov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jafar.isbarov/32/36130_2.png) [@jafar.isbarov](https://discourse.julialang.org/u/jafar.isbarov)\
**Post date:** [December 28, 2021, 11:44am UTC](https://discourse.julialang.org/t/hijri-calendar/73700/1 "2021-12-28T11:44:56Z")

</div>

I could not find any implementations of Hijri calendar. I think it would be good to have support for it, since it is one of the most commonly used calendars in the world. But I am new to Julia, so I do not how to go about it. Should I create a new package? Or maybe this has to be added to core Julia?

---

<div class="post-metadata">

**Author:** ![lobingera](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lobingera/32/211_2.png) [@lobingera](https://discourse.julialang.org/u/lobingera)\
**Post date:** [December 28, 2021, 12:50pm UTC](https://discourse.julialang.org/t/hijri-calendar/73700/2 "2021-12-28T12:50:33Z")

</div>

Recomendation is always to start developing in an (external) package. And maybe later this is integrated into Standard Library. Impact on core Julia should not be needed.

While googling i learned Java8 has an implementation in the Dates and Time API, maybe you read this first (or use JavaCall.jl)

---

<div class="post-metadata">

**Author:** ![jafar.isbarov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jafar.isbarov/32/36130_2.png) [@jafar.isbarov](https://discourse.julialang.org/u/jafar.isbarov)\
**Post date:** [December 28, 2021, 7:07pm UTC](https://discourse.julialang.org/t/hijri-calendar/73700/3 "2021-12-28T19:07:24Z")

</div>

Thanks for the suggestion. I have found this Python package:

[https://github.com/sodrooome/hijriah-converter](https://github.com/sodrooome/hijriah-converter)

Do you think this is reasonable alternative? I am thinking of implementing it in Julia. I could also take a look at that Java API, although I do not know any Java, so I do not expect much from myself.

---

<div class="post-metadata">

**Author:** ![jzr](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jzr](https://discourse.julialang.org/u/jzr)\
**Post date:** [December 28, 2021, 7:10pm UTC](https://discourse.julialang.org/t/hijri-calendar/73700/4 "2021-12-28T19:10:58Z")

</div>

The caveats listed on the Python package seem pretty bad.

If the calendar is built into Java8, that’s probably a better direction to look. Java’s libraries are mature.

[https://docs.oracle.com/javase/8/docs/api/java/time/chrono/HijrahChronology.html](https://docs.oracle.com/javase/8/docs/api/java/time/chrono/HijrahChronology.html)

---

<div class="post-metadata">

**Author:** ![jafar.isbarov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jafar.isbarov/32/36130_2.png) [@jafar.isbarov](https://discourse.julialang.org/u/jafar.isbarov)\
**Post date:** [December 28, 2021, 7:14pm UTC](https://discourse.julialang.org/t/hijri-calendar/73700/5 "2021-12-28T19:14:18Z")

</div>

Thanks. I will see if I can do anything.
