Example usage for java.time LocalTime plusSeconds

List of usage examples for java.time LocalTime plusSeconds

Introduction

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

Prototype

public LocalTime plusSeconds(long secondstoAdd) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    LocalTime l = LocalTime.now();
    LocalTime s = l.plusSeconds(1234);
    System.out.println(s);/*w ww  .j  a va2s .  c  o  m*/
}