Assuming you need the value to be displayed (and not necessarily modify the value of “time”), you can implement the following code:
LocalTime time = LocalTime.now(); System.out.println( time.toString().substring( 0, 10 ) + "00";