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(long amountToSubtract, TemporalUnit unit) 

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(12, ChronoUnit.WEEKS);
    System.out.println(l);/*from w  w w.  j  a v a  2  s.  co m*/

}