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 8.7.0

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