Example usage for java.time OffsetDateTime withMinute

List of usage examples for java.time OffsetDateTime withMinute

Introduction

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

Prototype

public OffsetDateTime withMinute(int minute) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetDateTime o = OffsetDateTime.now();
    OffsetDateTime d = o.withMinute(34);
    System.out.println(d);//w w  w . j ava  2  s .  co m
}