convertToDuration

@JvmName(name = "convertToDurationFromT")
fun <T : Any> DataColumn<T>.convertToDuration(): DataColumn<Duration>

Converts values in this column to Duration.

Supported source types: String (parsed via Duration.parse), JavaDuration, Long and Int (interpreted as milliseconds).

For more information: See convert on the documentation website.

Return

A new DataColumn with the Duration values.


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

Supported source types: String (parsed via Duration.parse), JavaDuration, Long and Int (interpreted as milliseconds).

For more information: See convert on the documentation website.

Return

A new DataColumn with the Duration nullable values.