convertToJavaLocalTime

@JvmName(name = "convertToJavaLocalTimeFromT")
fun <T : Any> DataColumn<T>.convertToJavaLocalTime(): DataColumn<LocalTime>

Converts values in this column to JavaLocalTime.

Supported source types: String (parsed), Long and Int (epoch milliseconds), LocalTime, LocalDateTime, JavaLocalDateTime, StdlibInstant, JavaInstant.

For more information: See convert on the documentation website.

Return

A new DataColumn with the JavaLocalTime values.


Converts values in this column to JavaLocalTime. Preserves null values.

Supported source types: String (parsed), Long and Int (epoch milliseconds), LocalTime, LocalDateTime, JavaLocalDateTime, StdlibInstant, JavaInstant.

For more information: See convert on the documentation website.

Return

A new DataColumn with the JavaLocalTime nullable values.


@JvmName(name = "convertToJavaLocalTimeFromString")
fun DataColumn<String>.convertToJavaLocalTime(formatter: DateTimeFormatter? = null, locale: Locale? = null): DataColumn<LocalTime>

Converts values in this String column to JavaLocalTime.

Trims each string and attempts to parse it using the specified formatter and locale. Fails with an exception if a value cannot be parsed.

For more information: See convert on the documentation website.

Return

A new DataColumn with the JavaLocalTime values.

Parameters

formatter

An optional DateTimeFormatter to use for parsing. If null, default parsers are used.

locale

An optional Locale for parsing. If null, the default locale is used.


@JvmName(name = "convertToJavaLocalTimeFromStringPattern")
fun DataColumn<String>.convertToJavaLocalTime(pattern: String, locale: Locale? = null): DataColumn<LocalTime>

Converts values in this String column to JavaLocalTime.

Trims each string and attempts to parse it using the specified pattern and locale. Fails with an exception if a value cannot be parsed.

For more information: See convert on the documentation website.

Return

A new DataColumn with the JavaLocalTime values.

Parameters

pattern

A time pattern to use for parsing (e.g., "HH:mm:ss").

locale

An optional Locale for parsing. If null, the default locale is used.


@JvmName(name = "convertToJavaLocalTimeFromStringNullable")
fun DataColumn<String?>.convertToJavaLocalTime(formatter: DateTimeFormatter? = null, locale: Locale? = null): DataColumn<LocalTime?>

Converts values in this nullable String column to JavaLocalTime. Preserves null values.

Trims each string and attempts to parse it using the specified formatter and locale. Fails with an exception if a value cannot be parsed.

For more information: See convert on the documentation website.

Return

A new DataColumn with the JavaLocalTime nullable values.

Parameters

formatter

An optional DateTimeFormatter to use for parsing. If null, default parsers are used.

locale

An optional Locale for parsing. If null, the default locale is used.


@JvmName(name = "convertToJavaLocalTimeFromStringNullablePattern")
fun DataColumn<String?>.convertToJavaLocalTime(pattern: String, locale: Locale? = null): DataColumn<LocalTime?>

Converts values in this nullable String column to JavaLocalTime. Preserves null values.

Trims each string and attempts to parse it using the specified pattern and locale. Fails with an exception if a value cannot be parsed.

For more information: See convert on the documentation website.

Return

A new DataColumn with the JavaLocalTime nullable values.

Parameters

pattern

A time pattern to use for parsing (e.g., "HH:mm:ss").

locale

An optional Locale for parsing. If null, the default locale is used.