Example usage for java.time Year minus

List of usage examples for java.time Year minus

Introduction

In this page you can find the example usage for java.time Year minus.

Prototype

@Override
public Year minus(TemporalAmount amountToSubtract) 

Source Link

Document

Returns a copy of this year with the specified amount subtracted.

Usage

From source file:Main.java

public static void main(String[] args) {
    Year y = Year.of(2014);
    Year l = y.minus(Period.ofYears(12));
    System.out.println(l);/* w w  w  .j  a v a2  s .  co  m*/

}