Seconds between
- Last Updated: March 24, 2022
- 1 minute read
- Corticon
- Version 6.3
- Documentation
SYNTAX
<DateTime1>.secsBetween(<DateTime2>)
<Time1>.secsBetween(<Time>)
Returns the Integer number of seconds between DateTimes or between Times. The number
of milliseconds in <DateTime1> is subtracted from that in
<DateTime2>, and the result divided by 1000 (the number
of milliseconds in a second). The result is truncated. This function returns a
positive number if <DateTime2> is later than
<DateTime1>.
The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.
The following Rulesheet uses .secsBetween to determine the
number of seconds that have elapsed between dateTime1 and
dateTime2, compare it to the Values set, and assign a value to
string1.
A sample Ruletest provides dateTime1 and
dateTime2 for two examples. Input and Output panels are shown
below.