core / io.islandtime.parser / hourOfDay

hourOfDay

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

Parse an hour of the day with a variable number of digits.

The result will be associated with DateTimeField.HOUR_OF_DAY.

(iosArm64, iosX64, jvm, macosX64) inline fun DateTimeParserBuilder.hourOfDay(length: Int, crossinline builder: WholeNumberParserBuilder.() -> Unit = {}): Unit

Parse an hour of the day with a fixed number of digits.

The result will be associated with DateTimeField.HOUR_OF_DAY.