Automattic\WooCommerce\Admin\DateTimeProvider

CurrentDateTimeProvider::get_now()publicWC 1.0

Returns the current DateTime.

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

No Hooks.

Return

DateTime.

Usage

$CurrentDateTimeProvider = new CurrentDateTimeProvider();
$CurrentDateTimeProvider->get_now();

Code of CurrentDateTimeProvider::get_now() WC 7.1.0

public function get_now() {
	return new \DateTime();
}