Example usage for java.time LocalDateTime plusNanos

List of usage examples for java.time LocalDateTime plusNanos

Introduction

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

Prototype

public LocalDateTime plusNanos(long nanos) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    LocalDateTime a = LocalDateTime.of(2014, 6, 30, 12, 00);

    LocalDateTime t = a.plusNanos(100);

    System.out.println(t);//from ww  w .j a  v a2s.c  o m
}