Constructor
new Schedule(bone)
Creates a new schedule based on the given trackbone tag
Parameters:
| Name | Type | Description |
|---|---|---|
bone |
string | The trackbone tag value |
- Source:
Methods
addScheduleDefinition(scheduleDefinition)
Adds a ScheduleDefinition to this schedule.
Parameters:
| Name | Type | Description |
|---|---|---|
scheduleDefinition |
ScheduleDefinition |
- Source:
instanceShouldRun(weekday, time) → {boolean}
Get, whether an instance with this schedule should be running at a given moment.
Parameters:
| Name | Type | Description |
|---|---|---|
weekday |
number | The number of the day of the week (1-7) |
time |
string | The time in 24h format (hh:mm) |
- Source:
Returns:
- Type
- boolean