LocalDateTime.withSecond

Returns a copy of this {@code LocalDateTime} with the second-of-minute altered. !(p) This instance is immutable and unaffected by this method call.

@param second the second-of-minute to set _in the result, from 0 to 59 @return a {@code LocalDateTime} based on this date-time with the requested second, not null @throws DateTimeException if the second value is invalid

class LocalDateTime
withSecond
(
int second
)

Meta