Automattic\WooCommerce\Admin\DateTimeProvider
CurrentDateTimeProvider::get_now()
Returns the current DateTime.
Method of the class: CurrentDateTimeProvider{}
No Hooks.
Return
DateTime
.
Usage
$CurrentDateTimeProvider = new CurrentDateTimeProvider(); $CurrentDateTimeProvider->get_now();
CurrentDateTimeProvider::get_now() CurrentDateTimeProvider::get now code WC 9.3.3
public function get_now() { return new \DateTime(); }