View Issue Details

IDProjectCategoryView StatusLast Update
0001636SkyChart1-Softwarepublic17-02-10 09:40
Reporterhan Assigned ToPatrick Chevalley  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformWindows 
Target Version4.0Fixed in Version3.11 SVN 
Summary0001636: Entering februari 29 in Julian period
DescriptionIn the Julian calendar every fourth year is a leap year. Also when it is divisible by 100. Reference Meeus Astronomical Algorithms, page 62

Entering the date 900-2-29 AD is not allowed in CdC. However entering JD 2049841.50000 works.

Regards Han.k
hnsky.org
TagsNo tags attached.

Activities

han

17-02-09 11:33

reporter   ~0003594

Suggested code:
 if year3>1582 then {Gregorion}
  begin
    if (((frac(year3/4)=0) and (frac(year3/100)<>0)) or (frac(year3/400)=0)) {2000 is a leap year}
     then days[2]:=29 {leap year} else days[2]:=28;{Days in februari
  end
  else {Julian years}
  begin
   if frac(year3/4)=0 then days[2]:=29 {leap year} else days[2]:=28;{days in Februari}
  end;

Patrick Chevalley

17-02-10 09:40

administrator   ~0003595

Thank you Han!

This is fixed in revision 3493:
https://sourceforge.net/p/skychart/code/3493/

Issue History

Date Modified Username Field Change
17-02-09 11:19 han New Issue
17-02-09 11:33 han Note Added: 0003594
17-02-10 09:32 Patrick Chevalley Project CCdciel => SkyChart
17-02-10 09:40 Patrick Chevalley Assigned To => Patrick Chevalley
17-02-10 09:40 Patrick Chevalley Status new => resolved
17-02-10 09:40 Patrick Chevalley Resolution open => fixed
17-02-10 09:40 Patrick Chevalley Category General => 1-Software
17-02-10 09:40 Patrick Chevalley Fixed in Version => 3.11 SVN
17-02-10 09:40 Patrick Chevalley Target Version => 4.0
17-02-10 09:40 Patrick Chevalley Note Added: 0003595