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

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 a Time object, as returned by the time() function.

Usage

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

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.div() Method and Clib.ldiv() Method
Clib.gmtime() Method
Clib.mktime() Method
getDate() Method
getTime() Method
getUTCDate() Method
toLocaleString() Method and toString() Method

Siebel eScript Language Reference