Example usage for java.time OffsetTime minusHours

List of usage examples for java.time OffsetTime minusHours

Introduction

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

Prototype

public OffsetTime minusHours(long hours) 

Source Link

Document

Returns a copy of this OffsetTime with the specified number of hours subtracted.

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetTime m = OffsetTime.now();
    OffsetTime n = m.minusHours(14);
    System.out.println(n);// w  w  w.ja v  a2 s.com

}