Example usage for java.time Instant getNano

List of usage examples for java.time Instant getNano

Introduction

In this page you can find the example usage for java.time Instant getNano.

Prototype

public int getNano() 

Source Link

Document

Gets the number of nanoseconds, later along the time-line, from the start of the second.

Usage

From source file:org.trellisldp.triplestore.TriplestoreResourceServiceTest.java

private static boolean isReallyLaterThan(final Instant time) {
    final Instant t = now();
    return t.isAfter(time) && (t.toEpochMilli() > time.toEpochMilli() || t.getNano() > time.getNano());
}