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() function

Returns

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

Clib.time() Method, Date.toSystem() Method


 Siebel eScript Language Reference 
 Published: 18 April 2003