Equinox Online Help - Language Reference - A to Z
Hour |
|
---|---|
Applies to | |
Syntax | Hour(TimeExpression) |
Action | [Function] Returns the hour from a specified time. |
Scope | Usable anywhere. |
Notes | The function extracts the hour value from TimeExpression and returns it as a number. |
Category | Time handling |
See Also | Hms, Hmsadd, Minute, Now, Second, Timer |
Example | The following example uses the estimated time of an operation to determine the appropriate nursing shift. switch Hour(EstOpTime)case 0 to 7end switchshift = 1case 8 to 15shift = 2case 16 to 24shift = 3 |