toJavaInstant

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

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

For more information: See convert on the documentation website.

Examples:

df.convert { timestamp }.toJavaInstant()
df.convert { colsOf<Long?>() }.toJavaInstant()

Return

A new DataFrame with the values converted to JavaInstant.