Example usage for java.time YearMonth lengthOfYear

List of usage examples for java.time YearMonth lengthOfYear

Introduction

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

Prototype

public int lengthOfYear() 

Source Link

Document

Returns the length of the year.

Usage

From source file:Main.java

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

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

}