java.time.LocalTime.isSupported(TemporalUnit unit)


java.time.LocalTime.isSupported(TemporalUnit unit)

package com.codingdict;

import java.time.LocalTime;
import java.time.temporal.ChronoUnit;

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

      LocalTime time = LocalTime.parse("12:30:30");
      System.out.println(time.isSupported(ChronoUnit.HOURS));  
   }
}