Add hours
- Last Updated: May 10, 2021
- 1 minute read
- Corticon.js
- Documentation
SYNTAX
<DateTime>.addHours(<Integer>)
Adds the number of hours in <Integer> to the number of hours in the Time portion of <DateTime.
The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.
This sample Rulesheet uses the . addHours to add
30 hours to the value of dateTime2 and assign the result to dateTime1.
![]()
A sample Ruletest provides values of dateTime2 for three instances of Entity1.
Input and Output panels are shown below.
![]()