Example usage for java.time YearMonth isLeapYear

List of usage examples for java.time YearMonth isLeapYear

Introduction

In this page you can find the example usage for java.time YearMonth isLeapYear.

Prototype

public boolean isLeapYear() 

Source Link

Document

Checks if the year is a leap year, according to the ISO proleptic calendar system rules.

Usage

From source file:Main.java

public static void main(String[] args) {
    YearMonth y = YearMonth.now();

    System.out.println(y.isLeapYear());

}