core / io.islandtime.parser / yearOfEra

yearOfEra

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

Parse a year of era with a variable number of digits.

The result will be associated with DateTimeField.YEAR_OF_ERA.

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

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

The result will be associated with DateTimeField.YEAR_OF_ERA.