Automattic\WooCommerce\Admin\DateTimeProvider
CurrentDateTimeProvider{}
Current DateTime Provider.
Uses the current DateTime.
No Hooks.
Usage
$CurrentDateTimeProvider = new CurrentDateTimeProvider(); // use class methods
Methods
- public get_now()
CurrentDateTimeProvider{} CurrentDateTimeProvider{} code WC 9.3.3
class CurrentDateTimeProvider implements DateTimeProviderInterface { /** * Returns the current DateTime. * * @return DateTime */ public function get_now() { return new \DateTime(); } }