convertToDateTimeComponents

@JvmName(name = "convertToDateTimeComponentsFromString")
fun DataColumn<String>.convertToDateTimeComponents(format: DateTimeFormat<DateTimeComponents>? = null): DataColumn<DateTimeComponents>

Converts values in this String column to DateTimeComponents.

Trims each string and attempts to parse it using the specified format. 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 DateTimeComponents values.

Parameters

format

An optional DateTimeFormat to use when parsing. If null, the defaults will be used.


@JvmName(name = "convertToDateTimeComponentsFromStringPattern")
@FormatStringsInDatetimeFormats
fun DataColumn<String>.convertToDateTimeComponents(pattern: String): DataColumn<DateTimeComponents>

Converts values in this String column to DateTimeComponents.

Trims each string and attempts to parse it using the specified pattern. 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 DateTimeComponents values.

Parameters

pattern

An optional date-time pattern to use for parsing.


@JvmName(name = "convertToDateTimeComponentsFromStringNullable")
fun DataColumn<String?>.convertToDateTimeComponents(format: DateTimeFormat<DateTimeComponents>? = null): DataColumn<DateTimeComponents?>

Converts values in this String column to DateTimeComponents. Preserves null values.

Trims each string and attempts to parse it using the specified format. 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 DateTimeComponents nullable values.

Parameters

format

An optional DateTimeFormat to use when parsing. If null, the defaults will be used.


@JvmName(name = "convertToDateTimeComponentsFromStringNullablePattern")
@FormatStringsInDatetimeFormats
fun DataColumn<String?>.convertToDateTimeComponents(pattern: String): DataColumn<DateTimeComponents?>

Converts values in this String column to DateTimeComponents. Preserves null values.

Trims each string and attempts to parse it using the specified pattern. 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 DateTimeComponents nullable values.

Parameters

pattern

An optional date-time pattern to use for parsing.