SpanTotalMinutes
See Also: Time and Date Functions
Purpose
Calculates the total number of minutes in the time span.
Return Type
Syntax
(SpanTotalMinutes( {tsVar} ))
Parameters
- {tsVar}: A value of type TimeSpan
What it Does
The SpanTotalMinutes function calculates the total number of minutes in the time span and returns a double precision real number of that amount.
Example
This sample shows how to check the time a process takes in minutes. The process is whatever code the DoSomething method executes.
// fictional method
Procedure DoSomething
// do something
// for example:
sleep (2 * 60)
End_Procedure
Procedure Test
DateTime dtVar1 dtVar2
TimeSpan tsVar
Move (CurrentDateTime()) to dtVar1
Send DoSomething
Move (CurrentDateTime()) to dtVar2
Move (dtVar2 - dtVar1) to tsVar
Showln "The total minutes between " dtVar1 " and " dtVar2 " are " (SpanTotalMinutes(tsVar))
End_Procedure