Example usage for java.time LocalTime minusNanos

List of usage examples for java.time LocalTime minusNanos

Introduction

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

Prototype

public LocalTime minusNanos(long nanosToSubtract) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    LocalTime l = LocalTime.now();
    LocalTime s = l.minusNanos(1000);
    System.out.println(s);//  w ww.ja  va 2 s .c  o  m
}