Java Data Type How to - Query if the Temporal support milli seconds


We would like to know how to query if the Temporal support milli seconds.


import java.time.Clock;
import java.time.Instant;
import java.time.temporal.ChronoField;
import java.time.temporal.TemporalAccessor;
import java.time.temporal.TemporalQuery;
//from   w  w  w  . j a va 2  s. c o  m
public class Main {

  public static void main(String[] args) {
    Clock defaultClock = Clock.systemDefaultZone();

    Instant instant =;

    TemporalQuery query = (TemporalAccessor x) -> x


The code above generates the following result.