setTime

fun setTime(localTime: LocalTime)(source)

Writes the contents of the specified localTime to this DateTimeComponents. The localTime is written to the hour, hourOfAmPm, amPm, minute, second and nanosecond fields.

If any of the fields are already set, they will be overwritten.