ActionScheduler::get_datetime_objectpublic staticWC 1.0

Get DateTime object.

Method of the class: ActionScheduler{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = ActionScheduler::get_datetime_object( $when, $timezone );
$when(null|string)
Date/time string.
Default: null
$timezone(string)
Timezone string.
Default: 'UTC'

ActionScheduler::get_datetime_object() code WC 10.7.0

public static function get_datetime_object( $when = null, $timezone = 'UTC' ) {
	_deprecated_function( __METHOD__, '2.0', 'wcs_add_months()' );
	return as_get_datetime_object( $when, $timezone );
}