DateTimePlus::prepareTime

protected DateTimePlus::prepareTime($time)

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.

Return value

mixed The massaged time.

File

core/lib/Drupal/Component/Datetime/DateTimePlus.php, line 373

Class

DateTimePlus
Wraps DateTime().

Namespace

Drupal\Component\Datetime

Code

protected function prepareTime($time) {
  return $time;
}
doc_Drupal
2016-10-29 09:01:03
Comments
Leave a Comment

Please login to continue.