You are here

public function PriceListInterface::getEndDate in Commerce Pricelist 8.2

Same name and namespace in other branches
  1. 8 src/Entity/PriceListInterface.php \Drupal\commerce_pricelist\Entity\PriceListInterface::getEndDate()

Gets the end date/time.

The end date/time should always be used in the store timezone. Since the price list can belong to multiple stores, the timezone isn't known at load/save time, and is provided by the caller instead.

Note that the returned date/time value is the same in any timezone, the "2019-10-17 11:00" stored value is returned as "2019-10-17 11:00 CET" for "Europe/Berlin" and "2019-10-17 11:00 ET" for "America/New_York".

Parameters

string $store_timezone: The store timezone. E.g. "Europe/Berlin".

Return value

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

1 method overrides PriceListInterface::getEndDate()
PriceList::getEndDate in src/Entity/PriceList.php
Gets the end date/time.

File

src/Entity/PriceListInterface.php, line 177

Class

PriceListInterface
Defines the interface for price lists.

Namespace

Drupal\commerce_pricelist\Entity

Code

public function getEndDate($store_timezone = 'UTC');