GetSchedule
Get the current state of a schedule
Description
GetSchedule( scheduleno, time=[now] )
Return the current state of a schedule at the given time.
Parameters
scheduleno | Schedule number (1-20) |
time | UNIX timestamp of when to evaluate the schedule (optional, default=current time |
Return value
Returns true if the schedule is active at the time given. False otherwise.
Example usage
new x; if( GetSchedule(1) ) PDebug("Schedule active");