Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DefaultEphemerisCorrection()

static double System.Globalization.CalendricalCalculationsHelper.DefaultEphemerisCorrection ( int gregorianYear)
inlinestaticprivate

Definition at line 152 of file CalendricalCalculationsHelper.cs.

153 {
154 long numberOfDays = GetNumberOfDays(new DateTime(gregorianYear, 1, 1));
155 double num = numberOfDays - s_startOf1810;
156 double x = 0.5 + num;
157 return (Math.Pow(x, 2.0) / 41048480.0 - 15.0) / 86400.0;
158 }

References System.DateTime, System.Globalization.CalendricalCalculationsHelper.GetNumberOfDays(), System.Math.Pow(), and System.Globalization.CalendricalCalculationsHelper.s_startOf1810.

Referenced by System.Globalization.CalendricalCalculationsHelper.EphemerisCorrection().