Example usage for java.time OffsetTime withMinute

List of usage examples for java.time OffsetTime withMinute

Introduction

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

Prototype

public OffsetTime withMinute(int minute) 

Source Link

Document

Returns a copy of this OffsetTime with the minute-of-hour altered.

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetTime m = OffsetTime.now();
    OffsetTime n = m.withMinute(34);
    System.out.println(n);//  w w  w.  j  a v  a  2s  .  c  o  m

}