Example usage for java.time ZoneOffset query

List of usage examples for java.time ZoneOffset query

Introduction

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

Prototype

@SuppressWarnings("unchecked")
@Override
public <R> R query(TemporalQuery<R> query) 

Source Link

Document

Queries this offset using the specified query.

Usage

From source file:Main.java

public static void main(String[] args) {
    ZoneOffset z = ZoneOffset.UTC;
    Chronology t = z.query(TemporalQueries.chronology());
    System.out.println(t);/* w ww. j a v  a 2 s . c  om*/
}