Example usage for java.time OffsetTime plusNanos

List of usage examples for java.time OffsetTime plusNanos

Introduction

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

Prototype

public OffsetTime plusNanos(long nanos) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetTime m = OffsetTime.now();
    OffsetTime n = m.plusNanos(1234);
    System.out.println(n);// www . jav  a 2  s .c  o m

}