Example usage for java.time OffsetTime minusNanos

List of usage examples for java.time OffsetTime minusNanos

Introduction

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

Prototype

public OffsetTime minusNanos(long nanos) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetTime m = OffsetTime.now();
    OffsetTime n = m.minusNanos(1234);
    System.out.println(n);//from w  ww  . ja  v a  2s .  com

}