ActionScheduler_AdminView_Deprecated::admin_notices()

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


Description Description

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/


Parameters Parameters

$interval

(Required) A interval in seconds.


Top ↑

Return Return

(string) A human friendly string representation of the interval.


Top ↑

Source Source

File: packages/action-scheduler/deprecated/ActionScheduler_AdminView_Deprecated.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.