Changeset 7489 for trunk/MagicSoft/Mars/mastro
- Timestamp:
- 02/10/06 10:22:30 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mastro/MAstro.cc
r7432 r7489 675 675 // 676 676 // für die Jahre M N 677 // 1700-1799 23 3 678 // 1800-1899 23 4 679 // 1900-2099 24 5 680 // 2100-2199 24 6 677 // 1583-1599 22 2 678 // 1600-1699 22 2 679 // 1700-1799 23 3 680 // 1800-1899 23 4 681 // 1900-1999 24 5 682 // 2000-2099 24 5 683 // 2100-2199 24 6 684 // 2200-2299 25 0 685 // 2300-2399 26 1 686 // 2400-2499 25 1 681 687 // 682 688 // Dann fällt Ostern auf den … … 741 747 Int_t MAstro::GetEasterOffset(UShort_t year) 742 748 { 743 if (year<1 700 || year>2199)749 if (year<1583 || year>2499) 744 750 { 745 751 cout << "MAstro::GetDayOfEaster - Year " << year << " not between 1700 and 2199" << endl; … … 747 753 } 748 754 749 const Int_t M = (year+2900)/200; 750 755 Int_t M=0; 751 756 Int_t N=0; 752 757 switch (year/100) 753 758 { 754 case 17: N=3; break; 755 case 18: N=4; break; 756 case 19: 757 case 20: N=5; break; 758 case 21: N=6; break; 759 case 15: 760 case 16: M=22; N=2; break; 761 case 17: M=23; N=3; break; 762 case 18: M=23; N=4; break; 763 case 19: 764 case 20: M=24; N=5; break; 765 case 21: M=24; N=6; break; 766 case 22: M=25; N=0; break; 767 case 23: M=26; N=1; break; 768 case 24: M=25; N=1; break; 759 769 } 760 770
Note:
See TracChangeset
for help on using the changeset viewer.