private static bool InLeapYear(double year){ if (year % 4 != 0.0) return false; if (year % 100 != 0.0) return true; if (year % 400 != 0.0) return false; return true; }