Xbasic
*minutes_between Function
Syntax
dim Result as N = *MINUTES_BETWEEN(t1 as T, t2 as T)
Arguments
- t1Time
A datetime value.
- t2Time
A datetime value
Returns
- ResultNumeric
Returns the minutes between two dates or times. If t2 is a date or time later than t1, *MINUTES_BETWEEN will return a negative value.
Description
Return difference of minutes between two dates or times.
Example
dim t1 as t = now() dim t2 as t = earlier ? t1 = 10/12/2017 11:32:53 53 am ? t2 = 10/12/2017 09:12:44 65 am ? *minutes_between(t2, t1) = -140.147966666667
See Also