Hi Steph,
My work is based on the work of Muhammad Hussain in hdate (Generate Hijri dates, calendars and prayertimes using command line and X interface, http://sourceforge.net/projects/hdate/ ).
for more information please read the file islamic_calendar.txt .
Thanks.
Steph wrote:
Hi Mostapha,
See http://www.zend.com/zend/week/pat/
I put your hijri.c in PAT because nobody I talked to on the PHP dev team knows how to check it. I also hunted around for another copy so we could judge better (because it would be good to have Islamic time in PHP), but I couldn't find any downloadable on the whole of the internet. Can you tell me where you found your original copy, please?
I will put this into PAT too if nobody responds. It relies on somebody who understands that calendar either seeing it on the internals list or there, whether you get the help you need. Could be tomorrow, could be a year. Hopefully closer to tomorrow than a year..
- Steph
DevZone Editor www.zend.com
-----Original Message----- From: mostapha31 [mailto:[EMAIL PROTECTED] Sent: 01 August 2004 14:26 To: PHP Internals List Subject: [PHP-DEV] implementation of islamic (hijri) calendar for Calendar extension
Hi
these is my contribution to implement islamic (hijri) calendar.
Waiting for your suggestions.
The Hijri (Islamic) Calender
The Islamic Calendar, used by Muslims world-wide, is a lunar one and consists of twelve months: Muharram, Safar, Rabi` al-Awal, Rabi` al-Thaani, Jumaada al-Awal, Jumaada al-Thaani, Rajab, Sha`ban, Ramadan, Shawwal, Zul al-Qi`dah, Zul al-Hijjah. An Islamic month runs from New Moon to New Moon. The Islamic "New Year" is the 1st day of Muharram, and the years of the Islamic calender are dated from 1st Muharram, 1 A.H. which corresponds to July 16, 622 A.D. on the Gregorian solar calender currently used in Western nations. (Note: A.D. is mostly written C.E. - that is, Current Era). A.H. means "Anno Hegirae" - the Year of the Hijrah - and it was in 1 A.H. that the Prophet Muhammad migrated with his followers from Makkah to what was to become the city of Madinah. This migration - Hijrah - is one the important events in the early history of Islam. Because the Islamic calendar is lunar, the Hijri year is shorter than the Gregorian year by about 11 days. This also means that the Islamic months are not "fixed" as the solar months of the Gregorian (Western) calender are fixed to the cycle of the Seasons. Each year, the corresponding Islamic months falls 11 or so days "earlier" compared to solar months. The result is that the Islamic months can correspond to any (solar) season with, for example, the month of Ramadan (the month of fasting) falling in Spring, or Summer, or Autumn or Winter. It takes 33 years for an Islamic month to correspond once again to the same solar month. The exact beginning of every Islamic month cannot be calculated exactly in advance, since it depends on an actual, and confirmed, physical sighting of the new moon somewhere in the world. This means that the Islamic calender corresponds to actual observed astronomical events, and does not need to be adjusted, like the solar calender, every fourth year (the leap year), or every four hundred years (the change from Julian to Gregorian) to account for variation between the Earth's seasonal changes and the variation in the Earth's orbit around the sun. Muhammad Hussain Yusuf Shawwal 1420 AH
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php