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

Clib.localtime() Method


This method returns a value as a Time object.

Syntax

Clib.localtime(timeInt)

Parameter
Description
timeInt
A date-time value as returned by the Clib.time() function

Returns

The value of timeInt (as returned by the time() function) as a Time object.

Usage

This method returns the value timeInt (as returned by the time() function) as a Time object. For details on the Time object, read The Time Object.

NOTE:  The line of code
      var now = Clib.asctime(Clib.localtime(Clib.time()));
is exactly equivalent to the standard JavaScript construction
      var aDate = new Date;
      var now = aDate.toLocaleString()
Wherever possible, use the second form.

See Also

Clib.asctime() Method, Clib.ctime() Method, Clib.gmtime() Method, Clib.mktime() Method, GetDate() Method, getTime() Method, getUTCDate() Method, and toLocaleString() Method and toString() Method


 Siebel eScript Language Reference 
 Published: 18 April 2003