core / io.islandtime.parser / periodOfYears

periodOfYears

(iosArm64, iosX64, jvm, macosX64) inline fun DateTimeParserBuilder.periodOfYears(length: IntRange = 1..10, crossinline builder: WholeNumberParserBuilder.() -> Unit = {}): Unit

Parse a period of whole years.

The number of years will be associated with DateTimeField.PERIOD_OF_YEARS.