toInt

fun LocalTime.toInt(): Int

Returns an integer that represents this time, like a string, but without the ":"

Truncates nanoseconds.

Examples:

  • 17:12:45 -> 171245

  • 00:00:00 -> 0

  • 05:00:00 -> 50000