HoursBefore Function

Description:
The time which is so many whole hours before the source time.
If the number of hours is positive then the resultant time will be before the source time.
If the number of hours is negative then the resultant time will be after the source time.
Returns:
Time
Parameters:
Parameter
Data Type
Description
1
Time
The source time.
2
Whole Number
The number of whole hours before.
Example:
When using functions inside a field, remember the field brackets:
{HoursBefore(ClosingTime, TradingHours)}
Expression
Result
HoursBefore( Time(23,15,45), 12 )
Time(11,15,45)

Related Content