Returns a copy of this OffsetTime with minute-of-hour replaced with the provided 'minute'
package com.logicbig.example.offsettime;
import java.time.OffsetTime;
public class WithMinuteExample {
public static void main(String... args) {
OffsetTime t = OffsetTime.now();
System.out.println(t);
OffsetTime t2 = t.withMinute(59);
System.out.println(t2);
}
}
Output
16:12:50.997-05:00
16:59:50.997-05:00