Method
GetMonthsInYear
func GetMonthsInYear(year: int) -> Result<int, InvalidDateError>
Declaring type: Calendar
Module: System.Time
Assembly: System.Runtime.dll
Source file: Calendar.rvn
Returns the count of civil months.
Parameters
| Name | Type | Description |
|---|---|---|
year |
Int32 | Calendar year within MinYear–MaxYear. |
Return value
Result<Int32, InvalidDateError>
Ok(value), or InvalidDateError outside the supported years.