You are here

protected function DateTimePlus::prepareTime in Service Container 7

Same name and namespace in other branches
  1. 7.2 lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::prepareTime()

Prepares the input time value.

Changes the input value before trying to use it, if necessary. Can be overridden to handle special cases.

Parameters

mixed $time: An input value, which could be a timestamp, a string, or an array of date parts.

1 call to DateTimePlus::prepareTime()
DateTimePlus::__construct in lib/Drupal/Component/Datetime/DateTimePlus.php
Constructs a date object set to a requested date and timezone.

File

lib/Drupal/Component/Datetime/DateTimePlus.php, line 332
Contains \Drupal\Component\Datetime\DateTimePlus.

Class

DateTimePlus
Wraps DateTime().

Namespace

Drupal\Component\Datetime

Code

protected function prepareTime($time) {
  return $time;
}