Example usage for java.time Period subtractFrom

List of usage examples for java.time Period subtractFrom

Introduction

In this page you can find the example usage for java.time Period subtractFrom.

Prototype

@Override
public Temporal subtractFrom(Temporal temporal) 

Source Link

Document

Subtracts this period from the specified temporal object.

Usage

From source file:Main.java

public static void main(String[] args) {
    Period p = Period.ofDays(12);

    Temporal l = p.subtractFrom(LocalDate.now());
    System.out.println(l);/* w  w w  .j a va2  s  . c  o m*/

}