Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

GetDaysInMonth

func GetDaysInMonth(year: int, month: int) -> Result<int, InvalidDateError>

Declaring type: Calendar
Module: System.Time
Assembly: System.Runtime.dll
Source file: Calendar.rvn

Returns the calendar month length, including variable Hebrew Heshvan/Kislev.

Parameters

Name Type Description
year Int32 Supported calendar year.
month Int32 Valid one-based civil month.

Return value

Result<Int32, InvalidDateError>

Ok(day count), or InvalidDateError for an invalid year/month.