package com.logicbig.example.localdatetime;
import java.time.LocalDateTime;
public class WithHourExample {
public static void main (String... args) {
LocalDateTime d = LocalDateTime.of(2000, 1, 2,
10, 20);
LocalDateTime d2 = d.withHour(20);
System.out.println(d2);
}
}