core / io.islandtime.parser / monthNumber

monthNumber

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) inline fun DateTimeParserBuilder.monthNumber(length: IntRange = 1..19, crossinline builder: WholeNumberParserBuilder.() -> Unit = {}): Unit

Parse a month of year value with a variable number of digits.

The result will be associated with DateTimeField.MONTH_OF_YEAR.

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) inline fun DateTimeParserBuilder.monthNumber(length: Int, crossinline builder: WholeNumberParserBuilder.() -> Unit = {}): Unit

Parse a month of year number with a fixed number of digits.

The result will be associated with DateTimeField.MONTH_OF_YEAR.