You are here

public function RecurringPeriodInterface::calculateDate in Recurring Time Period 8

Calculates the end date and time for the period.

Deprecated

Use calculateEnd() instead.

3 calls to RecurringPeriodInterface::calculateDate()
RecurringPeriodBase::calculateEnd in src/Plugin/RecurringPeriod/RecurringPeriodBase.php
Calculates the end date and time for the period.
RecurringPeriodBase::getPeriodContainingDate in src/Plugin/RecurringPeriod/RecurringPeriodBase.php
Gets a period object that contains the given date.
RecurringPeriodBase::getPeriodFromDate in src/Plugin/RecurringPeriod/RecurringPeriodBase.php
Gets a period object that begins on a given date.
3 methods override RecurringPeriodInterface::calculateDate()
FixedReferenceDateInterval::calculateDate in src/Plugin/RecurringPeriod/FixedReferenceDateInterval.php
Calculates the end date and time for the period.
RollingInterval::calculateDate in src/Plugin/RecurringPeriod/RollingInterval.php
Calculates the end date and time for the period.
Unlimited::calculateDate in src/Plugin/RecurringPeriod/Unlimited.php
Calculates the end date and time for the period.

File

src/Plugin/RecurringPeriod/RecurringPeriodInterface.php, line 95

Class

RecurringPeriodInterface
Defines an interface for recurring period plugins.

Namespace

Drupal\recurring_period\Plugin\RecurringPeriod

Code

public function calculateDate(\DateTimeImmutable $start);