Example usage for java.time OffsetTime withSecond

List of usage examples for java.time OffsetTime withSecond

Introduction

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

Prototype

public OffsetTime withSecond(int second) 

Source Link

Document

Returns a copy of this OffsetTime with the second-of-minute altered.

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetTime m = OffsetTime.now();
    OffsetTime n = m.withSecond(34);
    System.out.println(n);/*from  w  w w.  j  av  a2 s.c o m*/

}