toLocalDateTime

fun Long.toLocalDateTime(): LocalDateTime

Parse a date time from a formatted number with this format: YYYYMMDDHHmmss.

Receiver

Number to be converted to a date time.

Return

Local date time representation of the given number.


fun Date.toLocalDateTime(): LocalDateTime

Convert a date to a local date time.

Receiver

Date to be converted to a local date time.

Return

Local date time representation of the given date.