Example usage for java.time Month isSupported

List of usage examples for java.time Month isSupported

Introduction

In this page you can find the example usage for java.time Month 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) {
    Month m = Month.from(LocalDate.now());

    System.out.println(m.isSupported(ChronoField.MONTH_OF_YEAR));

}