Diviner

Function build_next_run_bit()

Definedinc/functions_task.php:327

int build_next_run_bit($data, $bit)

parametersstring$dataA string containing the run timse for this particular item
int$bitThe current value (be it current day etc)
returnintThe new or found value

Builds the next run time bit for a particular item (day, hour, month etc). Used by fetch_next_run().