List of usage examples for java.time Year until
@Override public long until(Temporal endExclusive, TemporalUnit unit)
From source file:Main.java
public static void main(String[] args) { Year y = Year.of(2014); long l = y.until(Year.of(2000), ChronoUnit.YEARS); System.out.println(l);// w ww . j av a 2s.co m }