toJavaDuration

Converts values in the columns previously selected with convert to JavaDuration, preserving their original names and positions within the DataFrame. Preserves null values.

Supported source types: String (parsed), Duration.

For more information: See convert on the documentation website.

Examples:

df.convert { duration }.toJavaDuration()
df.convert { colsOf<Duration?>() }.toJavaDuration()

Return

A new DataFrame with the values converted to JavaDuration.