You are here

public function Subscription::getStartDate in Commerce Recurring Framework 8

Gets the start timestamp as a DrupalDateTime object.

Return value

\Drupal\Core\Datetime\DrupalDateTime The start date/time.

Overrides SubscriptionInterface::getStartDate

File

src/Entity/Subscription.php, line 560

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function getStartDate() {
  return DrupalDateTime::createFromTimestamp($this
    ->getStartTime());
}