convertToJavaLocalDateTime

@JvmName(name = "convertToJavaLocalDateTimeFromT")
fun <T : Any> DataColumn<T>.convertToJavaLocalDateTime(): DataColumn<LocalDateTime>

Converts values in this column to JavaLocalDateTime.

Supported source types: String (parsed), Long and Int (epoch milliseconds), LocalDateTime, LocalDate, JavaLocalDate, StdlibInstant, DeprecatedInstant, JavaInstant.

For more information: See convert on the documentation website.

Return

A new DataColumn with the JavaLocalDateTime values.


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

Supported source types: String (parsed), Long and Int (epoch milliseconds), LocalDateTime, LocalDate, JavaLocalDate, StdlibInstant, DeprecatedInstant, JavaInstant.

For more information: See convert on the documentation website.

Return

A new DataColumn with the JavaLocalDateTime nullable values.


@JvmName(name = "convertToJavaLocalDateTimeFromString")
fun DataColumn<String>.convertToJavaLocalDateTime(formatter: DateTimeFormatter? = null, locale: Locale? = null): DataColumn<LocalDateTime>

Converts values in this String column to JavaLocalDateTime.

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 JavaLocalDateTime 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 = "convertToJavaLocalDateTimeFromStringPattern")
fun DataColumn<String>.convertToJavaLocalDateTime(pattern: String, locale: Locale? = null): DataColumn<LocalDateTime>

Converts values in this String column to JavaLocalDateTime.

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 JavaLocalDateTime values.

Parameters

pattern

A date-time pattern to use for parsing (e.g., "yyyy-MM-dd HH:mm:ss").

locale

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


@JvmName(name = "convertToJavaLocalDateTimeFromStringNullable")
fun DataColumn<String?>.convertToJavaLocalDateTime(formatter: DateTimeFormatter? = null, locale: Locale? = null): DataColumn<LocalDateTime?>

Converts values in this nullable String column to JavaLocalDateTime. 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 JavaLocalDateTime 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 = "convertToJavaLocalDateTimeFromStringNullablePattern")
fun DataColumn<String?>.convertToJavaLocalDateTime(pattern: String, locale: Locale? = null): DataColumn<LocalDateTime?>

Converts values in this nullable String column to JavaLocalDateTime. 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 JavaLocalDateTime nullable values.

Parameters

pattern

A date-time pattern to use for parsing (e.g., "yyyy-MM-dd HH:mm:ss").

locale

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