toNumber

fun LocalDateTime.toNumber(): Long

Convert a date time to a number with the following format: YYYYMMDDHHmmss.

Receiver

Date to be converted to a number.

Return

Numeric representation of the given date.


fun LocalDate.toNumber(): Int

Convert a date to an integer with the following format: YYYYMMDD.

Receiver

Date to be converted to a number.

Return

Numeric representation of the given date.


fun LocalTime.toNumber(): Int

Convert a time to an integer with the following format: HHmmssSSS.

Receiver

Time to be converted to a number.

Return

Numeric representation of the given time.