Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object >
Clib.difftime() Method
This method returns the difference in seconds between two times.
Syntax
Clib.difftime(timeInt1, timeInt0)
Parameter Description timeInt0 An integer time value as returned by the Clib.time() function timInt1 An integer time value as returned by the Clib.time() functionReturns
The difference in seconds between timeInt0 and timeInt1.
Example
This example displays the difference in time, in seconds, between two times:
function difftime_Click ()
{
var first = Clib.time();
var second = Clib.time();
TheApplication().RaiseErrorText("Elapsed time is " +
Clib.difftime(second, first) + " seconds.");
}See Also
Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference Published: 18 April 2003 |