Example usage for java.time LocalTime adjustInto

List of usage examples for java.time LocalTime adjustInto

Introduction

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

Prototype

@Override
public Temporal adjustInto(Temporal temporal) 

Source Link

Document

Adjusts the specified temporal object to have the same time as this object.

Usage

From source file:Main.java

public static void main(String[] args) {
    LocalTime l = LocalTime.now();
    LocalTime t = LocalTime.NOON;
    Temporal s = l.adjustInto(t);
    System.out.println(s);/*from w ww  .j  a  v  a  2  s.  c  om*/
}