Example usage for java.time LocalTime plusNanos

List of usage examples for java.time LocalTime plusNanos

Introduction

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

Prototype

public LocalTime plusNanos(long nanosToAdd) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    LocalTime l = LocalTime.now();
    LocalTime s = l.plusNanos(1234);
    System.out.println(s);/*  w w  w  .j a  va2  s.c om*/
}