4D v14.3Time Operators |
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
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. You can combine expressions of the time and number types using the Time or Current time functions. For example: Example: //The following line assigns to $vlSeconds the number of seconds that will be elapsed between midnight and one hour from now The second line could be written in a simpler way: // The following line assigns to $vHSoon the time it will be in one hour 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 ARTICLE USAGE
4D Language Reference ( 4D v14 R3) Inherited from : Time Operators ( 4D v12.4) |
||||||||||||||||||||||||||||||||||||||||||||||||||