Example usage for java.time Month query

List of usage examples for java.time Month query

Introduction

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

Prototype

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

Source Link

Document

Queries this month-of-year using the specified query.

Usage

From source file:Main.java

public static void main(String[] args) {
    Month m = Month.from(LocalDate.now());

    Chronology n = m.query(TemporalQueries.chronology());
    System.out.println(n);// www .  ja v a 2  s . com

}