Example usage for java.time OffsetTime with

List of usage examples for java.time OffsetTime with

Introduction

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

Prototype

@Override
public OffsetTime with(TemporalAdjuster adjuster) 

Source Link

Document

Returns an adjusted copy of this time.

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetTime m = OffsetTime.now();
    OffsetTime n = m.with(OffsetTime.now());
    System.out.println(n);/*  w w  w. j  ava 2s  . co  m*/

}