Bookshelf Home | Contents | Index | Search | PDF |
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)
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 constructionvar aDate = new Date;
Wherever possible, use the second form.
var now = aDate.toLocaleString()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
Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference Published: 18 April 2003 |