Class schedule

Description

Classes to handle a 24-hr time schedule. Covers the setting of * any number of slots, and testing whether a given time is in one of * the slots. The schedule class. Holds multiple timeslots.

Located in /datetime-defs.php (line 667)


	
			
Variable Summary
 mixed $timeslots
Method Summary
 schedule schedule ([mixed $timeslots = ""])
 void add_timeslot (mixed $start, mixed $end, [string $name = ""])
 void timeslot (mixed $datetime)
Variables
mixed $timeslots = array() (line 669)

Array of timeslots in a schedule.

Methods
Constructor schedule (line 671)
schedule schedule ([mixed $timeslots = ""])
add_timeslot (line 684)

Add timeslot. The start and end parameters can either be Unix timestamps, or string datetime specifiers.

void add_timeslot (mixed $start, mixed $end, [string $name = ""])
  • mixed $start: Start time for timeslot, string datetime or Unix timestamp
  • mixed $end: End time for timeslot, string datetime or Unix timestamp
  • string $name: The name or ID associated with this timeslot.
timeslot (line 702)
void timeslot (mixed $datetime)

Documentation generated by phpDocumentor 1.3.0RC3