System.Globalization.CCHebrewCalendar.long_heshvan C# (CSharp) Метод

long_heshvan() публичный статический Метод

The functions checks whether the month Heshvan is a long one in the given Hebrew year.
public static long_heshvan ( int year ) : bool
year int An integer that gives the Hebrew year. ///
Результат bool
	public static bool long_heshvan(int year) {
		return CCMath.mod(days_in_year(year), 10) == 5;
	}

Usage Example

Пример #1
0
        public static int last_day_of_month(int month, int year)
        {
            if (month < 1 || month > 13)
            {
                throw new ArgumentOutOfRangeException("month", "Month should be between One and Thirteen.");
            }
            switch (month)
            {
            case 2:
                return(29);

            case 4:
                return(29);

            case 6:
                return(29);

            case 8:
                if (!CCHebrewCalendar.long_heshvan(year))
                {
                    return(29);
                }
                break;

            case 9:
                if (CCHebrewCalendar.short_kislev(year))
                {
                    return(29);
                }
                break;

            case 10:
                return(29);

            case 12:
                if (!CCHebrewCalendar.is_leap_year(year))
                {
                    return(29);
                }
                break;

            case 13:
                return(29);
            }
            return(30);
        }