Example usage for java.time ZonedDateTime minusNanos

List of usage examples for java.time ZonedDateTime minusNanos

Introduction

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

Prototype

public ZonedDateTime minusNanos(long nanos) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    ZonedDateTime dateTime = ZonedDateTime.now();
    ZonedDateTime n = dateTime.minusNanos(1234);
    System.out.println(n);//w w w.  j  a va2  s.c om
}