Skip to content

//core/io.islandtime.parser/dayOfYear

dayOfYear

common

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

Parse a day of the year value with a variable number of digits.

The result will be associated with DateTimeField.DAY_OF_YEAR.

common

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

Parse a day of the year value with a fixed number of digits.

The result will be associated with DateTimeField.DAY_OF_YEAR.