You are here

public static function TimestampHelper::timestampToStringOld in Node expire 7.2

Converts timestamp to string.

File

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

Class

TimestampHelper
TimestampHelper class.

Namespace

Drupal\node_expire\Module\CommonExpire\Conversion

Code

public static function timestampToStringOld($format, $timestamp) {
  $dt = new \DateTime('@' . $timestamp);
  $str = $dt
    ->format($format);
  return $str;
}