Example usage for java.time OffsetTime plusSeconds

List of usage examples for java.time OffsetTime plusSeconds

Introduction

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

Prototype

public OffsetTime plusSeconds(long seconds) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetTime m = OffsetTime.now();
    OffsetTime n = m.plusSeconds(1234);
    System.out.println(n);// w ww.  j  a v a  2  s.c  o  m

}