public LocalDateTime withSecond (int second)

Returns a copy of this LocalDateTime with the second-of-minute altered.

This instance is immutable and unaffected by this method call.

Parameters:
second    the second-of-minute to set in the result, from 0 to 59

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

Exceptions:
DateTimeException    if the second value is invalid