java.time.LocalTime.minus(TemporalAmount amountToSubtract)


java.time.LocalTime.minus(TemporalAmount amountToSubtract)

package com.codingdict;

import java.time.Duration;
import java.time.LocalTime;

public class LocalTimeDemo {
   public static void main(String[] args) {

      LocalTime time = LocalTime.parse("12:30:30");
      System.out.println(time.minus(Duration.ofHours(2)));  
   }
}