Siebel eScript Language Reference > C Language Library Reference > Clib Date and Time Methods >

Clib Get Difference in Seconds Method


The Clib Get Difference in Seconds method returns the difference in seconds between two times.

Format

Clib.difftime(timeInt1, timeInt0)

Table 181 describes the arguments for the Clib Get Difference in Seconds method.

Table 181. Arguments for the Clib Get Difference in Seconds Method
Argument
Description

timeInt0

An integer time value that this method returns.

timeInt1

An integer time value that this method returns.

Example

The following example displays the difference 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.");
}

Siebel eScript Language Reference Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.