public static function TimestampHelper::addInterval in Node expire 7.2
Adds string interval to timestamp.
File
- src/
Module/ CommonExpire/ Conversion/ TimestampHelper.php, line 104 - TimestampHelper class.
Class
- TimestampHelper
- TimestampHelper class.
Namespace
Drupal\node_expire\Module\CommonExpire\ConversionCode
public static function addInterval($interval, $timestamp) {
$dt = new \DateTime('@' . $timestamp);
$dt
->modify($interval);
$ts = $dt
->getTimestamp();
return $ts;
}