Computing the Julian Day and the Declination of the Sun Date: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec     01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31     1999 2000 2001 2002 2003 2004 2005    Local Time: 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23     00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 Julian Day is: UT is:

Das Formular:



Date:            Local Time:

Julian Day is:

UT is:

Das JavaScript:

 var dat, myDay, myMonth, myYear, myHour, myMinute, JD, UT, offset, dIM, DEC;   function daysInMonth(m, y) { var n=31; m=m-1; if ((m==0) || (m==2) || (m==4) || (m==6) || (m==7) || (m==9) || (m==11)) n=31; if ((m==3) || (m==5) || (m==8) || (m==10)) n=30; if (m==1) { n=28; if ((y % 4) == 0) n=29; if ((y % 100) == 0) n=28; if ((y % 400) == 0) n=29; } dIM=n; }   function DateTime() { var str = "On " +myYear+"/"+ myMonth+"/"+myDay+" at "+ myHour+":"+myMinute+" the declination of the Sun is "+ " " + Math.round(100*DEC)/100 + " deg"; document.myform.DateTime.value=str; }   function thisHour() { dat=new Date(); document.myform.Stunde.options[dat.getHours()].selected=true; myHour=dat.getHours() }   function thisMinute() { dat=new Date(); document.myform.Minute.options[dat.getMinutes()].selected=true; myMinute=dat.getMinutes() }   function thisUT() { dat=new Date() offset=dat.getTimezoneOffset() if (offset>=1380) offset=offset-1440 UT = myHour+(myMinute+offset)/60.0+dat.getSeconds()/3600.0 str=myHour+offset/60.0 if (myHour+offset/60.0<0) str= 24+myHour+offset/60.0 if (myHour+offset/60.0>24) str= -24+myHour+offset/60.0 str=" " + str + ":"; if (myMinute<10) str=str+"0"+myMinute else str=str+myMinute document.myform.UTime.value=str }   function thisJulDay() { yy = dat.getYear() if (yy<1000) yy=yy+1900 JulianDay(dat.getDate(),dat.getMonth(),yy,UT) document.myform.JulDay.value=JD }   function thisDay() { dat=new Date(); document.myform.Tag.options[dat.getDate()-1].selected=true; myDay=dat.getDate() }   function thisMonth() { document.myform.Monat.options[dat.getMonth()].selected=true; myMonth=dat.getMonth()+1 }   function thisYear() { dat=new Date() yy=dat.getYear()-1999 if (yy<0) {yy=yy+1900; myYear=dat.getYear()+1900} else myYear=dat.getYear() document.myform.Jahr.options[yy].selected=true; }   function theDay() { daysInMonth(myMonth,myYear) for (var i=0;i=1380) offset=offset-1440 UT = myHour+(myMinute+offset)/60.0+dat.getSeconds()/3600.0 str=myHour+offset/60.0 if (myHour+offset/60.0<0) str= 24+myHour+offset/60.0 if (myHour+offset/60.0>=24) str= -24+myHour+offset/60.0 str=" " + str + ":"; if (myMinute<10) str=str+"0"+myMinute else str=str+myMinute document.myform.UTime.value=str }   function theMinute() { for (var i=0;i

Letzte Änderung: