Example usage for java.time LocalTime query

List of usage examples for java.time LocalTime query

Introduction

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

Prototype

@SuppressWarnings("unchecked")
@Override
public <R> R query(TemporalQuery<R> query) 

Source Link

Document

Queries this time using the specified query.

Usage

From source file:Main.java

public static void main(String[] args) {
    LocalTime l = LocalTime.now();
    LocalTime s = l.query(TemporalQueries.localTime());
    System.out.println(s);//from   ww  w. ja v  a  2s . c o m
}