Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Date Object >
getSeconds() Method
This method returns the seconds portion of a Date object.
Syntax
dateVar.getSeconds()
Returns
The seconds portion of dateVar as a number from 0 to 59.
Usage
This method returns the seconds portion of dateVar. The first second of a minute is 0, and the last is 59.
Example
This code fragment returns the number
14
, the seconds portion of the specified date.var aDate = new Date("October 31, 1986 12:13:14");
TheApplication().RaiseErrorText(aDate.getSeconds() + 1);See Also
GetDate() Method, getDay() Method, getFullYear() Method, getHours() Method, getMinutes() Method, getMonth() Method, getTime() Method, and getYear() Method
Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference Published: 18 April 2003 |