diff options
Diffstat (limited to 'src/mscorlib/corefx/System/Globalization/CalendricalCalculationsHelper.cs')
-rw-r--r-- | src/mscorlib/corefx/System/Globalization/CalendricalCalculationsHelper.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mscorlib/corefx/System/Globalization/CalendricalCalculationsHelper.cs b/src/mscorlib/corefx/System/Globalization/CalendricalCalculationsHelper.cs index 149e63c689..7de75d6aee 100644 --- a/src/mscorlib/corefx/System/Globalization/CalendricalCalculationsHelper.cs +++ b/src/mscorlib/corefx/System/Globalization/CalendricalCalculationsHelper.cs @@ -22,8 +22,8 @@ namespace System.Globalization private const int SecondsPerMinute = 60; private const int MinutesPerDegree = 60; - private static readonly long StartOf1810 = GetNumberOfDays(new DateTime(1810, 1, 1)); - private static readonly long StartOf1900Century = GetNumberOfDays(new DateTime(1900, 1, 1)); + private static readonly long s_startOf1810 = GetNumberOfDays(new DateTime(1810, 1, 1)); + private static readonly long s_startOf1900Century = GetNumberOfDays(new DateTime(1900, 1, 1)); private static readonly double[] s_coefficients1900to1987 = new double[] { -0.00002, 0.000297, 0.025184, -0.181133, 0.553040, -0.861938, 0.677066, -0.212591 }; private static readonly double[] s_coefficients1800to1899 = new double[] { -0.000009, 0.003844, 0.083563, 0.865736, 4.867575, 15.845535, 31.332267, 38.291999, 28.316289, 11.636204, 2.043794 }; @@ -146,7 +146,7 @@ namespace System.Globalization private static double CenturiesFrom1900(int gregorianYear) { long july1stOfYear = GetNumberOfDays(new DateTime(gregorianYear, 7, 1)); - return (double)(july1stOfYear - StartOf1900Century) / DaysInUniformLengthCentury; + return (double)(july1stOfYear - s_startOf1900Century) / DaysInUniformLengthCentury; } // the following formulas defines a polynomial function which gives us the amount that the earth is slowing down for specific year ranges @@ -154,7 +154,7 @@ namespace System.Globalization { Debug.Assert(gregorianYear < 1620 || 2020 <= gregorianYear); long january1stOfYear = GetNumberOfDays(new DateTime(gregorianYear, 1, 1)); - double daysSinceStartOf1810 = january1stOfYear - StartOf1810; + double daysSinceStartOf1810 = january1stOfYear - s_startOf1810; double x = TwelveHours + daysSinceStartOf1810; return ((Math.Pow(x, 2) / 41048480) - 15) / SecondsPerDay; } |