public LocalDateTime withHour (int hour)

Returns a copy of this LocalDateTime with the hour-of-day altered.

This instance is immutable and unaffected by this method call.

Parameters:
hour    the hour-of-day to set in the result, from 0 to 23

Returns:  a LocalDateTime based on this date-time with the requested hour, not null

Exceptions:
DateTimeException    if the hour value is invalid