Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object Time Methods >

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

timeInt1

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.tmpnam() Method
Date.toSystem() Method

Siebel eScript Language Reference