IF OFFSET >=0 THEN
TIME_LOCAL:= ((current_time + OFFSET)>24) ? ((current_time + OFFSET) - 24) : (current_time + OFFSET);
else
TIME_LOCAL:= ((current_time + OFFSET) < 0) ? ((current_time + OFFSET) + 24) : (current_time + OFFSET);
endif;
IF OFFSET >=0 THEN
TIME_LOCAL:= ((current_time + OFFSET)>24) ? ((current_time + OFFSET) - 24) : (current_time + OFFSET);
else
TIME_LOCAL:= ((current_time + OFFSET) < 0) ? ((current_time + OFFSET) + 24) : (current_time + OFFSET);
endif;
The conditional operator (?:) returns one of two values depending on the value of a Boolean expression. Following is the syntax for the conditional operator. condition ? first_expression : second_expression;