earl123
25th November 2009, 13:38
I have a problem regarding conversion of Hijri Calendar to Gregorian Calendar, need help please, if anyone have a script on HIjri to Gregorian Date Conversion, or anyone knows what is the conversion formula.....
Thanks in advance
rahul.kolhe22
25th November 2009, 15:10
Hi,
I tried to google on this topic :D. I found the following link, which I think may help you
http://www.saudiaramcoworld.com/issue/197904/the.turn.of.a.century.htm
Regards,
--Rahul
earl123
26th November 2009, 11:26
I tried it, but they give conversion formula for year only......
earl123
2nd December 2009, 07:13
experts help me with this please.... ..... t
norwim
2nd December 2009, 09:15
hmmmm
1) you are crossposting
2) someone already did the googling for you
3) the link mentioned does contain the complete data to create a formula for converting seconds to a date
Because the Koran (Sura 10:5) establishes the use of lunar months for Muslims - that is, a calendar based on the phases of the moon - the Islamic year does not correspond with the Gregorian calendar, which is based on a solar year; as an astronomical lunar month contains 29 days, 12 hours, 44 minutes and 3 seconds, a year composed of 12 such lunar months contains 354 days, 8 hours, 48 minutes and 36 seconds - which is approximately 11 days shorter than the solar year.
The months of the Muslim year, by convention, have 29 and 30 days alternately. This means that the Hijra - or, more exactly, the Hizri-year contains exactly 354 days. The 8 hours, 48 minutes and 36 seconds difference (11/30 of a day) between this figure and the astronomical lunar year adds up to 11 days in every cycle of 30 years. These 11 days are inserted into the calendar by establishing leap years. Every period of 30 years, therefore, has 11 leap years of 355 days instead of 354. These are normally the 2nd, 5th, 7th, 10th, 13th, 16th, 18th, 21st, 24th, 26th, and 29th years of the 30-year cycle. The "leap day" which is added to these years is always assigned to the end of the month of Dhu al-Hijja, the month of the Hajj - the Muslim pilgrimage to Mecca - and last month of the year. In just the same way, the Gregorian calendar adds an extra day to February every four years.
4) I strongly doubt that the localisations lack an inbuilt function for data conversion
regards
Norbert
rahul.kolhe22
3rd December 2009, 15:02
Hi,
I have fianlly managed to get some function to do the date conversion using some googling and then a little play around for converting from JSP to Baan. Please refer the attached file for it.
I have tested it from my side. But I would stilll suggest you to test the output for the functions before using.
Regards
--Rahul
earl123
4th December 2009, 07:26
thanks rahul,
i will try it in my side.......
thanks and best regards,
earl