Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Date Object >
getMilliseconds() Method
This method returns the millisecond of a Date object.
Syntax
dateVar.getMilliseconds()
Returns
The millisecond of dateVar as a number from 0 to 999.
Usage
This method sets the millisecond of dateVar to millisecond. When given a date in millisecond form, this method returns the last three digits of the millisecond date; or, if negative, the result of the last three digits subtracted from 1000.
Example
This code fragment displays the time on the system clock. The number of milliseconds past the beginning of the second appears at the end of the message.
var aDate = new Date;
TheApplication().RaiseErrorText( aDate.toString() + " " +
aDate.getMilliseconds() );See Also
GetDate() Method, getDay() Method, getFullYear() Method, getHours() Method, getMinutes() Method, getMonth() Method, getSeconds() Method, getTime() Method, and getYear() Method
Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference Published: 18 April 2003 |