List of usage examples for java.time OffsetTime isSupported
@Override public boolean isSupported(TemporalUnit unit)
From source file:Main.java
public static void main(String[] args) { OffsetTime m = OffsetTime.now(); boolean z = m.isSupported(ChronoUnit.HOURS); System.out.println(z);/*w w w .java 2 s . c o m*/ }
From source file:Main.java
public static void main(String[] args) { OffsetTime m = OffsetTime.now(); boolean z = m.isSupported(ChronoField.HOUR_OF_DAY); System.out.println(z);//from www .j a v a 2 s . co m }