T4JDurationParser

Object in charge of parsing strings into Durations, using translated locale-aware units.

Functions

Link copied to clipboard
fun charValid(char: Char, locale: Locale): Boolean

Check whether the given character is a valid duration unit character.

Link copied to clipboard
open override fun getKoin(): Koin
Link copied to clipboard
fun parse(input: String, locale: Locale): Duration<IsoUnit>

Parse the provided string to a Duration object, using the strings provided by the given Locale.