You are here

public function RollingInterval::calculateDate in Recurring Time Period 8

Calculates the end date and time for the period.

Overrides RecurringPeriodInterface::calculateDate

Deprecated

Use calculateEnd() instead.

File

src/Plugin/RecurringPeriod/RollingInterval.php, line 61

Class

RollingInterval
Provides a period based on a rolling interval from the start date.

Namespace

Drupal\recurring_period\Plugin\RecurringPeriod

Code

public function calculateDate(\DateTimeImmutable $start) {
  return $this
    ->calculateEnd($start);
}