Example usage for java.time ZoneOffset isSupported

List of usage examples for java.time ZoneOffset isSupported

Introduction

In this page you can find the example usage for java.time ZoneOffset isSupported.

Prototype

@Override
public boolean isSupported(TemporalField field) 

Source Link

Document

Checks if the specified field is supported.

Usage

From source file:Main.java

public static void main(String[] args) {
    ZoneOffset z = ZoneOffset.UTC;
    boolean t = z.isSupported(ChronoField.OFFSET_SECONDS);
    System.out.println(t);//from  w  ww  . ja  v  a2 s .co  m
}