ActionScheduler_AdminView_Deprecated::admin_notices()public staticWC 1.0

Convert an interval of seconds into a two part human friendly string.

The WordPress human_time_diff() function only calculates the time difference to one degree, meaning even if an action is 1 day and 11 hours away, it will display "1 day". This funciton goes one step further to display two degrees of accuracy.

Based on Crontrol::interval() function by Edward Dale: https://wordpress.org/plugins/wp-crontrol/

Method of the class: ActionScheduler_AdminView_Deprecated{}

No Hooks.

Return

String. A human friendly string representation of the interval.

Usage

$result = ActionScheduler_AdminView_Deprecated::admin_notices();

ActionScheduler_AdminView_Deprecated::admin_notices() code WC 8.6.1

public static function admin_notices() {
	_deprecated_function( __METHOD__, '2.0.0' );
}