WPSEO_Date_Helper::format_timestamp()publicYoast 1.0

Formats the given timestamp to the needed format.

Метод класса: WPSEO_Date_Helper{}

Хуков нет.

Возвращает

Строку. The formatted date.

Использование

$WPSEO_Date_Helper = new WPSEO_Date_Helper();
$WPSEO_Date_Helper->format_timestamp( $timestamp, $format );
$timestamp(int) (обязательный)
The timestamp to use for the formatting.
$format(строка)
The format that the passed date should be in.
По умолчанию: DATE_W3C

Код WPSEO_Date_Helper::format_timestamp() Yoast 22.4

public function format_timestamp( $timestamp, $format = DATE_W3C ) {
	return YoastSEO()->helpers->date->format_timestamp( $timestamp, $format );
}