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

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(Period.ofDays(12));
    System.out.println(n);/*w w  w .  ja  va2s.co  m*/

}