islamic lunar age calculator
// A little JavaScript action to preset the fields in the lunar month and day of your chosen day. { var i leap=((m==2)&&((m3==0)||((m1==0)&&(m2!=0))))?1:0; Leap years are following a 30-year cycle and falls on the 2, 5, 7, 10, 13, 16, 18, 21, 24, 26, and 29 year of the cycle. ※This site shall not be liable for any damages arising out of the use this library. { i=l-365*n+30 However, in 631 AD, the Prophet Muhammad has forbidden to add these days and the Muslim year became strictly lunar. l=l-10631*n+354 } || (num.charAt(i)=='-'))) document.Hijri.CYear.focus(); document.Hijri.CDay.focus(); if (todayy < 1000) } In the Julian calendar (the Gregorian did not yet exist) was July 16, 622 A.D. Calendar used by the calculator, is the most common in the Islamic world the secular (civil) calendar, the beginning of the month is determined astronomically. else leaph=((mh==12)&&(m1h==2||m1h==5||m1h==7||m1h==10||m1h==13||m1h==16||m1h==18||m1h==21||m1h==24||m1h==26||m1h==29))?1:0; delta=0 document.gregorian.year.value = y m=document.Hijri.CMonth.value; dh=document.Hijri.HDay.value; if(wdn==3){ function GregToIsl(arg) { return Math.floor(floatNum+0.0000001) alert("Hijri Year can not be empty"); {

return "Wed" //added delta=0 on jd to comply isna rulling 2007 //adji added var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec l=jd-1948440+10632

y=100*(n-49)+i+l return "Thu" var yleap,d,m,y,m1,m2,m3,leap; 1. //added - delta=0 on jd to comply isna rulling d=parseInt(arg.HDay.value) } j=intPart((80*i)/2447) return false; return false; } function isnumeric(num) n=intPart((4*l)/146097) d=parseInt(arg.CDay.value) { } l=intPart(j/11) l=l-intPart((146097*n+3)/4)

//adji added m=parseInt(arg.CMonth.value) setTimeout("countdown(theyear,themonth,theday)",1000)

function gvalidate() dd=Date.parse(futurestring)-Date.parse(todaystring)

Tropical year - the time interval between two successive passages of the Sun through the vernal equinox. } In turn each year is divided into 12 months called: arg.HYear.value=y A worldwide muslim prayer times searchable via zipcode or cities.