year
inline fun DateTimeParserBuilder.year(length: IntRange = 1..19, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
Parse a year with a variable number of digits.
The result will be associated with DateTimeField.YEAR.
inline fun DateTimeParserBuilder.year(length: Int, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
Parse a year with a fixed number of digits.
The result will be associated with DateTimeField.YEAR.