This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help
Time Expressions are used to specify calculations on times. They are used in the values field of Derived Time variables and may be used as part of the expressions for logical expressions. Time expressions are:
The possible operands and operators are fully described in the sections below.
Table of time operands for use with time expressions
Operand |
Description |
|---|---|
Time Variable |
A Question Time or a Derived Time variable. |
Time Constant |
A time value expressed as a constant. Any of the standard formats for time are acceptable for time variables, for example, 19:00 could be 7.00 pm or 7 o'clock pm. |
Time Property |
The word NOW which returns the current time (according to the time set on the computer that is running Snap). |
Used to extract parts of a time. The name of a variable followed by a time function. |
|
Find the number of seconds between two times, add a number of seconds onto a time or subtract a number of seconds from a time. |
|
Comparison |
Comparisons relate variable or constant values to give a TRUE or FALSE result. The effects of relational operations are described fully in the section entitled 'Relational Operators'. |
|
In this section |
|