WPSEO_Date_Helper::format_timestamp()
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() WPSEO Date Helper::format timestamp Yoast 24.9
public function format_timestamp( $timestamp, $format = DATE_W3C ) { return YoastSEO()->helpers->date->format_timestamp( $timestamp, $format ); }