Automattic\WooCommerce\Admin\DateTimeProvider

CurrentDateTimeProvider::get_now()publicWC 1.0

Returns the current DateTime.

Method of the class: CurrentDateTimeProvider{}

No Hooks.

Return

DateTime.

Usage

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

CurrentDateTimeProvider::get_now() code WC 9.3.3

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