You are here

public static function TimestampHelper::stringIntervalToTimestampOld in Node expire 7.2

Converts string interval to timestamp.

File

src/Module/CommonExpire/Conversion/TimestampHelper.php, line 124
TimestampHelper class.

Class

TimestampHelper
TimestampHelper class.

Namespace

Drupal\node_expire\Module\CommonExpire\Conversion

Code

public static function stringIntervalToTimestampOld($str_interval) {
  $timestamp = strtotime($str_interval, REQUEST_TIME);
  return $timestamp;
}