/sources/blocks/main_staff_checklist.php

Description
Classes
Class Description
Block_main_staff_checklist
Functions
staff_checklist_time_ago_and_due (line 243)

Work out when an action should happen, and last happened.

  • return: A pair: Tempcode to display, and the number of seconds to go until the action should happen
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)

Documentation generated on Sun, 02 Jan 2011 23:17:36 +0000 by phpDocumentor 1.4.3