public static MonthLength ( int month, bool leapYear ) : int | ||
month | int | The month number (1-12). |
leapYear | bool | Flag to indicate a leap year. |
Результат | int |
/// <summary> /// Returns the number of days in the given month for the specified /// year. /// </summary> /// <param name="month">The month number (1-12).</param> /// <param name="year">The year (1900-2099).</param> /// <returns>The length of the given month in the specified year.</returns> public static int MonthLength(int month, int year) { return(DateValue.MonthLength(month, year)); }
/// <summary> /// Returns the number of days in the given month in a leap or non-leap /// year. /// </summary> /// <param name="month">The month number (1-12).</param> /// <param name="leapYear">Flag to indicate a leap year.</param> /// <returns>The length of the given month in the indicated type of /// year.</returns> public static int MonthLength(int month, bool leapYear) { return(DateValue.MonthLength(month, leapYear)); }