List of usage examples for java.time YearMonth lengthOfYear
public int lengthOfYear()
Source Link
From source file:Main.java
public static void main(String[] args) { YearMonth y = YearMonth.now(); System.out.println(y.lengthOfYear()); }