addDays method

LocalDateTime addDays(
  1. int days
)

Returns a new LocalDateTime representing the current value with the given number of days added.

This method does not try to maintain the month or year of the current value, so adding 3 days to a value on January 30th will result in a value on February 2nd.

  • days: The number of days to add

Returns: The current value plus the given number of days.

Implementation

LocalDateTime addDays(int days) => LocalDateTime.localDateAtTime(calendarDate.addDays(days), clockTime);