Example usage for java.time OffsetTime minusSeconds

List of usage examples for java.time OffsetTime minusSeconds

Introduction

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

Prototype

public OffsetTime minusSeconds(long seconds) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetTime m = OffsetTime.now();
    OffsetTime n = m.minusSeconds(1234);
    System.out.println(n);/*from   w w w  . ja  va2s  .  c  om*/

}