Example usage for java.time LocalTime minusSeconds

List of usage examples for java.time LocalTime minusSeconds

Introduction

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

Prototype

public LocalTime minusSeconds(long secondsToSubtract) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    LocalTime l = LocalTime.now();
    LocalTime s = l.minusSeconds(1000);
    System.out.println(s);//from  ww  w.j a v a 2  s.  c  o  m
}