Example usage for java.time OffsetTime plus

List of usage examples for java.time OffsetTime plus

Introduction

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

Prototype

@Override
public OffsetTime plus(long amountToAdd, TemporalUnit unit) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetTime m = OffsetTime.now();
    OffsetTime n = m.plus(34, ChronoUnit.DAYS);
    System.out.println(n);//from ww w  .ja  va  2  s . co  m

}