WC_DateTime::__toString()publicWC 3.0.0

Output an ISO 8601 date string in local (WordPress) timezone.

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

Хуков нет.

Возвращает

Строку.

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

$WC_DateTime = new WC_DateTime();
$WC_DateTime->__toString();

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

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

Код WC_DateTime::__toString() WC 8.7.0

public function __toString() {
	return $this->format( DATE_ATOM );
}