This group of functions covers VSE capability to compare VSE time objects.
IsEqualTime()
Verifies that one VSE time object is equal to another VSE time object.
IsEqualTime (time1, time2)
|
Parameters |
|
|---|---|
|
time_1 |
VSE time object representing the first time interval |
|
time_2 |
VSE time object representing the second time interval |
Return values:
Returns 1 if time_1 is equal to time_2. Returns 0 otherwise.
Example
t1 = Time(100); t2 = Time(500);
If(IsEqualTime(t1, t2)) DoSomething();
IsLessTime()
Verifies that one VSE time object is less than another VSE time object.
IsLessTime (time1, time2)
|
Parameters |
|
|---|---|
|
time_1 |
VSE time object representing the first time interval |
|
time_2 |
VSE time object representing the second time interval |
Return values
Returns 1 if time_1 is less than time_2. Returns 0 otherwise.
Example
t1 = Time(100); t2 = Time(500);
If(IsLessTime (t1, t2)) DoSomething();
IsGreaterTime()
Verifies that one VSE time object is greater than another VSE time object.
IsGreaterTime (time1, time2)
|
Parameters |
|
|---|---|
|
time_1 |
VSE time object representing the first time interval |
|
time_2 |
VSE time object representing the second time interval |
Return values
Returns 1 if time_1 is greater than time_2. Returns 0 otherwise.
Example
t1 = Time(100); t2 = Time(500);
If(IsGreaterTime (t1, t2)) DoSomething();
IsTimeInInterval()
Verifies that a VSE time object is greater than a minimum VSE time object and less than a maximum VSE time object.
IsTimeInInterval(min_time, time, max_time)
|
Parameters |
|
|---|---|
|
min_time |
VSE time object representing a minimum interval. |
|
time |
VSE time object representing a time interval. |
|
max_time |
VSE time object representing a maximum interval. |
Return values
Returns 1 if min_time <= time <= max_time. Returns 0 otherwise.
Example
t1 = Time(100);
t = Time(400);
t2 = Time(500);
If(IsTimeInInterval (t1, t, t2)) DoSomething();