Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Date Object >
getTime() Method
This method returns the milliseconds representation of a Date object, in the form of an integer representing the number of seconds between midnight on January 1, 1970, GMT, and the date and time specified by a Date object.
Syntax
dateVar.getTime()
Returns
The milliseconds representation of dateVar.
Usage
This method returns the milliseconds representation of a Date object, in the form of an integer representing the number of seconds between midnight on January 1, 1970, GMT, and the date and time specified by dateVar.
Example
This code fragment returns the value
245594000.
To convert this value to something more readily interpreted, use the toLocaleString() method or the toGMTString() method.var aDate = new Date("January 3, 1970 12:13:14");
TheApplication().RaiseErrorText(aDate.getTime());See Also
Clib.asctime() Method, Clib.gmtime() Method, Clib.localtime() Method, Clib.mktime() Method, GetDate() Method, getDay() Method, getFullYear() Method, getHours() Method, getMinutes() Method, getMonth() Method, getSeconds() Method, and getYear() Method
Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference Published: 18 April 2003 |