List of usage examples for java.time Period toTotalMonths
public long toTotalMonths()
From source file:Main.java
public static void main(String[] args) { Period p = Period.ofMonths(1); long l = p.toTotalMonths(); System.out.println(l);/* w w w. j ava2s . c o m*/ }