Questions tagged [umalquracalendar]

The Umm al-Qura calendar is a calculated lunar calendar that was created by Saudi Arabia. It is also followed by several neighboring states on the Arabian Peninsula such as Bahrain and Qatar, as well as organizations in North America and Europe.

The Umm al-Qura calendar adopts the Hijri lunar Islamic system of dating events and accounting days and months.

The dates for the calendar are determined at the Institute of Astronomical & Geophysical Research of the King Abdulaziz City for Science and Technology (KACST) in Riyadh.

Under the current rules the lunar month will always start after the astronomical new moon and with the lunar crescent above the horizon at Mecca (often just barely so). Still, in most cases (about 75%) the lunar crescent will not be visible to the naked eye on the first evening of the lunar month as seen from Mecca (or elsewhere in Saudi Arabia).

8 questions
13
votes
3 answers

Convert between calendars

How to convert between calendars? Here is what I have: UmAlQuraCalendar hijri = new UmAlQuraCalendar(); GregorianCalendar cal = new GregorianCalendar(); DateTime hijriDate = new DateTime(1434, 11, 23, hijri); DateTime gregorianDate = ...; // I…
Eng.Fouad
  • 115,165
  • 71
  • 313
  • 417
7
votes
3 answers

Get Month Name of java.time.chrono.HijrahDate instance

HijrahDate hd=HijrahChronology.INSTANCE.date(LocalDate.of(2014,11, 25)); If we have HijrahDate Instance , it is expected to have a method in UmalquraCalendar API that shows the name of month : i inspect properties of this instance using groovy API…
Abdennour TOUMI
  • 87,526
  • 38
  • 249
  • 254
4
votes
1 answer

How to use Umalqura calendar in java 8 with java.util.Date

we hear those days that java8 will includes Umalqura calendar APi which manages Hijri Date . Where to find a sample that convert Date To Hijri ? Indeed , i find this code : HijrahDate hdate = HijrahChronology.INSTANCE.date(LocalDate.of(2014,…
Abdennour TOUMI
  • 87,526
  • 38
  • 249
  • 254
0
votes
0 answers

Year, Month, and Day parameters describe an un-representable DateTime. Error for one date converting only

My code is working fine for all date except one that is 2019,10,28. i do not know why i am getting error to convert this date to umulqura or hijri. UmAlQuraCalendar HijriCalender = new UmAlQuraCalendar(); var date = new DateTime…
0
votes
1 answer

How to calculate list of months in specified date range in UmAlQuraCalendar

I want to calculate a list of months in specified date range. For instance: DateTime StartDate = 24 - 11 - 2014; DateTime EndDate = 24 - 11 - 2016; I want to calculate all the months between starting and ending date with names of months.
Salman Ullah Khan
  • 730
  • 10
  • 29
0
votes
1 answer

UmAlQuraCalendar return value

I am writing a class that deal with UmAlQuraCalendar . one of the functions take Georgian date and convert it to umalqura. i can do that but the System.DateTime class can't hold UmAlQura dates. it only hold Georgian date. so what return type should…
0
votes
1 answer

g:formatDate grails taglib does not work with java.time.chrono.HijrahDate instance

HijrahChronology.INSTANCE.date(LocalDate.of(year, month, day)); This code used to convert a date to Hijrah Date using UmalQuraCalendar API of JAVA8. raises an exception :…
Abdennour TOUMI
  • 87,526
  • 38
  • 249
  • 254
0
votes
1 answer

How to Convert Extjs Datepicker to Hijri date picker

i am developing an application using Extjs V 3.0, i am stuck with Hijri calender picker, is there any way to use hjri calender in Extjs application? like we have already in Jquery [http://keith-wood.name/]