WC_DateTime::date()publicWC 3.0.0

Format a date based on the offset timestamp.

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

Хуков нет.

Возвращает

Строку.

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

$WC_DateTime = new WC_DateTime();
$WC_DateTime->date( $format );
$format(строка) (обязательный)
Date format.

Список изменений

С версии 3.0.0 Введена.

Код WC_DateTime::date() WC 8.7.0

public function date( $format ) {
	return gmdate( $format, $this->getOffsetTimestamp() );
}