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(TemporalAmount amountToSubtract) 

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(Period.ofDays(12));
    System.out.println(n);//from  w ww  .ja v a2  s  .  co  m

}