Example usage for java.time OffsetTime minus

List of usage examples for java.time OffsetTime minus

Introduction

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

Prototype

@Override
public OffsetTime minus(long amountToSubtract, TemporalUnit unit) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetTime m = OffsetTime.now();
    OffsetTime n = m.minus(14, ChronoUnit.DAYS);
    System.out.println(n);//from   www  .ja va2 s  .c  o  m

}