core / io.islandtime.parser / DateTimeParserBuilder / fraction

fraction

(iosArm64, iosX64, jvm, macosX64) abstract fun fraction(length: IntRange = 1..9, scale: Int = 9, builder: FractionParserBuilder.() -> Unit = {}): Unit

Parse the fractional part of a number.

Parameters

length - the number of digits in the fraction

scale - the number of digits to normalize the fraction to -- by default 9, indicating nanoseconds

builder - configure parser behavior