Example usage for java.time OffsetTime plusHours

List of usage examples for java.time OffsetTime plusHours

Introduction

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

Prototype

public OffsetTime plusHours(long hours) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetTime m = OffsetTime.now();
    OffsetTime n = m.plusHours(34);
    System.out.println(n);//from  w  w w  . j  a  va2 s.co  m

}