public static bool IsVernalEquinoxDay(DateTime dateTime, bool ignoreStaleInfo = true) { if (dateTime.Month != 3) { return(false); } var equinoxDateTime = EquinoxDates.GetVernalEquinoxDateTime(dateTime.Year); // Vernal Equinox DateTime in JST (UTC+9) var eq = equinoxDateTime.AddHours(9); return(IsDayOrTransferedHoliday(dateTime, eq.Day)); }
public static bool IsAutumnalEquinoxDay(DateTime dateTime) { if (dateTime.Year < 1948) { return(false); } if (dateTime.Month != 9) { return(false); } var equinoxDateTime = EquinoxDates.GetAutumnalEquinoxDateTime(dateTime.Year); // Vernal Equinox DateTime in JST (UTC+9) var eq = equinoxDateTime.AddHours(9); return(IsDayOrTransferedHoliday(dateTime, eq.Day)); }