Example usage for java.time Month length

List of usage examples for java.time Month length

Introduction

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

Prototype

public int length(boolean leapYear) 

Source Link

Document

Gets the length of this month in days.

Usage

From source file:Main.java

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

    System.out.println(m.length(true));

}