"getRangeStart"
Returns the range start of a scheduler time range (time bar).
Synopsis
shape.getRangeStart(int idx);
Parameters
Parameter | Description |
---|---|
idx | The index of the time range whose range start should be returned. Starts with 0. |
Description
Returns the range start of a scheduler time range (time bar).
Note: Note that the function returns the starting time of the time range but not the
DATE.
Example
Returns the range start of the time range 1.
main()
{
time t = shape.getRangeStart(0);
DebugN("seconds since start: "+period(t));
//and
time t = shape.getRangeEnd(0);
DebugN("seconds since end: "+period(t));
//Use ONLY period(t) and NOT t.hour(), t+"", ... because only period(t) returns the correct value!
}
Assignment
Scheduler ewo