Example usage for java.time OffsetTime adjustInto

List of usage examples for java.time OffsetTime adjustInto

Introduction

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

Prototype

@Override
public Temporal adjustInto(Temporal temporal) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetTime m = OffsetTime.now();
    Temporal n = m.adjustInto(OffsetTime.now(ZoneId.systemDefault()));
    System.out.println(n);/*w ww. j a  va  2  s.c  o m*/

}