Equinox Online Help - Language Reference - A to Z

Home

Hour

Applies to
SyntaxHour(TimeExpression)
Action[Function] Returns the hour from a specified time.
ScopeUsable anywhere.
Notes

The function extracts the hour value from TimeExpression and returns it as a number.

CategoryTime 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 7
shift = 1
case 8 to 15
shift = 2
case 16 to 24
shift = 3
end switch