Package io. islandtime. parser
Parsing of dates, times, durations, and intervals from textual representations.
Types
DateTimeParseException
Link copied to clipboard
class DateTimeParseException(message: String?, parsedString: String?, errorIndex: Int, cause: Throwable?) : DateTimeException
Content copied to clipboard
DateTimeParser
Link copied to clipboard
abstract class DateTimeParser
Content copied to clipboard
DateTimeParserBuilder
Link copied to clipboard
interface DateTimeParserBuilder
Content copied to clipboard
DateTimeParserDsl
Link copied to clipboard
DateTimeParseResult
Link copied to clipboard
data class DateTimeParseResult(fields: MutableMap<DateTimeField, Long>, timeZoneId: String?)
Content copied to clipboard
DateTimeParsers
Link copied to clipboard
DateTimeParserSettings
Link copied to clipboard
data class DateTimeParserSettings(numberStyle: NumberStyle, locale: () -> Locale, isCaseSensitive: Boolean)
Content copied to clipboard
DecimalNumberParserBuilder
Link copied to clipboard
GroupedDateTimeParser
Link copied to clipboard
class GroupedDateTimeParser
Content copied to clipboard
GroupedDateTimeParserBuilder
Link copied to clipboard
interface GroupedDateTimeParserBuilder
Content copied to clipboard
LiteralParserBuilder
Link copied to clipboard
interface LiteralParserBuilder
Content copied to clipboard
NumberParserBuilder
Link copied to clipboard
interface NumberParserBuilder
Content copied to clipboard
SignParserBuilder
Link copied to clipboard
interface SignParserBuilder
Content copied to clipboard
StringParseAction
Link copied to clipboard
StringParserBuilder
Link copied to clipboard
interface StringParserBuilder
Content copied to clipboard
WholeNumberParserBuilder
Link copied to clipboard
Functions
amPm
Link copied to clipboard
dateTimeParser
Link copied to clipboard
inline fun dateTimeParser(builder: DateTimeParserBuilder.() -> Unit): DateTimeParser
Content copied to clipboard
Define a custom DateTimeParser.
dayOfMonth
Link copied to clipboard
inline fun DateTimeParserBuilder.dayOfMonth(length: Int, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
inline fun DateTimeParserBuilder.dayOfMonth(length: IntRange = 1..19, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
dayOfWeekNumber
Link copied to clipboard
inline fun DateTimeParserBuilder.dayOfWeekNumber(length: Int = 1, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
dayOfYear
Link copied to clipboard
inline fun DateTimeParserBuilder.dayOfYear(length: Int, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
inline fun DateTimeParserBuilder.dayOfYear(length: IntRange = 1..19, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
durationOfFractionalSeconds
Link copied to clipboard
inline fun DateTimeParserBuilder.durationOfFractionalSeconds(wholeLength: IntRange = 1..19, fractionLength: IntRange = 0..9, fractionScale: Int = 9, crossinline builder: DecimalNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
durationOfHours
Link copied to clipboard
inline fun DateTimeParserBuilder.durationOfHours(length: IntRange = 1..19, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
durationOfMinutes
Link copied to clipboard
inline fun DateTimeParserBuilder.durationOfMinutes(length: IntRange = 1..19, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
durationOfSeconds
Link copied to clipboard
inline fun DateTimeParserBuilder.durationOfSeconds(length: IntRange = 1..19, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
era
Link copied to clipboard
fractionalSecondOfMinute
Link copied to clipboard
inline fun DateTimeParserBuilder.fractionalSecondOfMinute(wholeLength: Int, fractionLength: IntRange = 0..9, fractionScale: Int = 9, crossinline builder: DecimalNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
inline fun DateTimeParserBuilder.fractionalSecondOfMinute(wholeLength: IntRange = 1..2, fractionLength: IntRange = 0..9, fractionScale: Int = 9, crossinline builder: DecimalNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
groupedDateTimeParser
Link copied to clipboard
inline fun groupedDateTimeParser(builder: GroupedDateTimeParserBuilder.() -> Unit): GroupedDateTimeParser
Content copied to clipboard
Creates a GroupedDateTimeParser.
hourOfDay
Link copied to clipboard
inline fun DateTimeParserBuilder.hourOfDay(length: Int, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
inline fun DateTimeParserBuilder.hourOfDay(length: IntRange = 1..2, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
localizedDayOfWeek
Link copied to clipboard
localizedMonth
Link copied to clipboard
minuteOfHour
Link copied to clipboard
inline fun DateTimeParserBuilder.minuteOfHour(length: Int, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
inline fun DateTimeParserBuilder.minuteOfHour(length: IntRange = 1..2, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
monthNumber
Link copied to clipboard
inline fun DateTimeParserBuilder.monthNumber(length: Int, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
inline fun DateTimeParserBuilder.monthNumber(length: IntRange = 1..19, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
periodOfDays
Link copied to clipboard
inline fun DateTimeParserBuilder.periodOfDays(length: IntRange = 1..10, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
periodOfMonths
Link copied to clipboard
inline fun DateTimeParserBuilder.periodOfMonths(length: IntRange = 1..10, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
periodOfWeeks
Link copied to clipboard
inline fun DateTimeParserBuilder.periodOfWeeks(length: IntRange = 1..10, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
periodOfYears
Link copied to clipboard
inline fun DateTimeParserBuilder.periodOfYears(length: IntRange = 1..10, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
periodSign
Link copied to clipboard
Parses a number's sign and populates DateTimeField.PERIOD_SIGN with
-1L, if negative or 1L, if positive.secondOfMinute
Link copied to clipboard
inline fun DateTimeParserBuilder.secondOfMinute(length: Int, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
inline fun DateTimeParserBuilder.secondOfMinute(length: IntRange = 1..2, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
timeZoneId
Link copied to clipboard
unboundedDesignator
Link copied to clipboard
utcDesignator
Link copied to clipboard
utcOffsetHours
Link copied to clipboard
inline fun DateTimeParserBuilder.utcOffsetHours(length: Int, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
utcOffsetMinutes
Link copied to clipboard
inline fun DateTimeParserBuilder.utcOffsetMinutes(length: Int, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
utcOffsetSeconds
Link copied to clipboard
inline fun DateTimeParserBuilder.utcOffsetSeconds(length: Int, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
utcOffsetSign
Link copied to clipboard
Parses a number's sign and populates DateTimeField.UTC_OFFSET_SIGN with
-1L, if negative or 1L, if positive.year
Link copied to clipboard
inline fun DateTimeParserBuilder.year(length: Int, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
inline fun DateTimeParserBuilder.year(length: IntRange = 1..19, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
yearOfEra
Link copied to clipboard
inline fun DateTimeParserBuilder.yearOfEra(length: Int, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard
inline fun DateTimeParserBuilder.yearOfEra(length: IntRange = 1..19, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})
Content copied to clipboard