List of usage examples for java.time Period getUnits
@Override public List<TemporalUnit> getUnits()
Source Link
From source file:Main.java
public static void main(String[] args) { Period p = Period.ofMonths(1); System.out.println(p.getUnits()); }