core / io.islandtime.parser / year

year

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

Parse a year with a variable number of digits.

The result will be associated with DateTimeField.YEAR.

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

Parse a year with a fixed number of digits.

The result will be associated with DateTimeField.YEAR.