4D v13.4Time Operators |
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
Time Operators
Time Operators
An expression that uses a time operator returns a time or a number, depending on the operation. The following table shows the time operators:
To obtain a time expression from an expression that combines a time expression with a number, use the commands Time and Time string. Example: ` The following line assigns to $vlSeconds the number of seconds that will be elapsed The second line could be written in a simpler way: ` The following line assigns to $vHSoon the time it will be in one hour However, while developing your application, you may encounter situations where a delay, expressed in seconds and added to a time value, is only available to you as a numeric value. Some situations may require you to convert a time expression into a numeric expression. Example: ` Select and open a document The Modulo operator can be used, more specifically, to add times that take the 24-hour format into account: $t1:=?23:00:00? // It is 23:00 p.m. |
PROPERTIES
Product: 4D SEE ALSO
Bitwise Operators |
||||||||||||||||||||||||||||||||||||||||||||||||||