staff_checklist_time_ago_and_due (line 243)
Work out when an action should happen, and last happened.
array
staff_checklist_time_ago_and_due
(?integer $seconds_ago, [?integer $recur_hours = NULL])
-
?integer
$seconds_ago: The number of seconds ago since it last happened (NULL: never happened) OR If $recur_hours is NULL then the number of seconds until it happens (NULL: won't happen)
-
?integer
$recur_hours: It should be done every this many hours (NULL: never happened)