Skip to content

//core/io.islandtime.parser/hourOfDay

hourOfDay

common

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

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

The result will be associated with DateTimeField.HOUR_OF_DAY.

common

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

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

The result will be associated with DateTimeField.HOUR_OF_DAY.