Changeset 14312 for trunk/FACT++/www/shift
- Timestamp:
- 08/06/12 11:37:40 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/shift/calendar.js
r13774 r14312 841 841 this.getMoonPhase = function(Y, M, D) 842 842 { 843 // M=0..11 --> 1..12 844 M += 1; 845 843 846 // calculate the Julian date at 12h UT 844 847 var YY = Y - Math.floor( ( 12 - M ) / 10 ); … … 855 858 // calculate moon's age in days 856 859 var IP = ( ( JD - 2451550.1 ) / 29.530588853 ) % 1; 860 857 861 return IP; 858 862 859 863 // Moon's age 860 864 //var AG = IP*29.53; 861 862 865 } 863 866
Note:
See TracChangeset
for help on using the changeset viewer.