Specifications
CHAPTER 24 DataWindow Expression and InfoMaker Functions
Users Guide 737
SecondsAfter
Description Gets the number of seconds one time occurs after another.
Syntax SecondsAfter ( time1, time2 )
Return value
Long. Returns the number of seconds time2 occurs after time1. If time2 occurs
before time1,
SecondsAfter returns a negative number.
Examples This expression returns 15:
SecondsAfter(21:15:30, 21:15:45)
This expression returns -15:
SecondsAfter(21:15:45, 21:15:30)
This expression returns 0:
SecondsAfter(21:15:45, 21:15:45)
See also DaysAfter
Sign
Description Reports whether the number is negative, zero, or positive by checking its sign.
Syntax Sign ( n )
Return value Integer. Returns a number (–1, 0, or 1) indicating the sign of n.
Examples This expression returns 1 (the number is positive):
Sign(5)
This expression returns 0:
Sign(0)
This expression returns –1 (the number is negative):
Sign(-5)
Argument Description
time1 A time value that is the start time of the interval being measured
time2 A time value that is the end time of the interval
Argument Description
n The number for which you want to determine the sign