addHours method

LocalDateTime addHours(
  1. int hours
)

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

  • hours: The number of hours to add

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

Implementation

LocalDateTime addHours(int hours) => TimePeriodField.hours.addDateTime(this, hours);