Siebel eScript Language Reference > Siebel eScript Commands > Date and Time Methods >
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());
See Also
getDate() Method getDay() Method getFullYear() Method getHours() Method getMinutes() Method getMonth() Method getTime() Method getYear() Method
|