Example usage for java.time Month firstDayOfYear

List of usage examples for java.time Month firstDayOfYear

Introduction

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

Prototype

public int firstDayOfYear(boolean leapYear) 

Source Link

Document

Gets the day-of-year corresponding to the first day of this month.

Usage

From source file:Main.java

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

    System.out.println(m.firstDayOfYear(false));

}