public static function createDateFromTimestamp($timestamp, DateTimeZone $dateTimeZone = NULL) {
    $openYLocaleDate = new OpenYLocaleDate();
    $openYLocaleDate->setDateFromTimeStamp($timestamp, $dateTimeZone);
    return $openYLocaleDate;
  }
public static function createDateFromTimestamp($timestamp, DateTimeZone $dateTimeZone = NULL) {
    $openYLocaleDate = new OpenYLocaleDate();
    $openYLocaleDate->setDateFromTimeStamp($timestamp, $dateTimeZone);
    return $openYLocaleDate;
  }
public static function createDateFromTimestamp ( $ timestamp , DateTimeZone $ dateTimeZone = NULL ) { $ openYLocaleDate = new OpenYLocaleDate ( ) ; $ openYLocaleDate -> setDateFromTimeStamp ( $ timestamp , $ dateTimeZone ) ; return $ openYLocaleDate ; }
Creates a new OpenYLocaleDate from a timestamp.

@param string $timestamp
@param \DateTimeZone|null $dateTimeZone

@return \Drupal\openy_campaign\OpenYLocaleDate
Creates a new OpenYLocaleDate from a timestamp .