Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > Date and Time Methods > setMilliseconds() MethodThis method sets the millisecond of a Date object to a date expressed in milliseconds relative to the system time. SyntaxdateVar.setMilliseconds(millisecond) UsageThis method sets the millisecond of dateVar to millisecond. The value of dateVar becomes equivalent to the number of milliseconds from the time on the system clock. Use a positive number for later times, a negative number for earlier times. ExampleThis example accepts a number of milliseconds as input and converts it to the date relative to the date and time in the computer's clock. function test2_Click () switch(anHour) TheApplication().RaiseErrorText("The specified date is " + aMonth + "/" + aDay + "/" + aYear + " at " + anHour); If you enter 0 on November 22, 1999, you get the following result. The specified date is 11/22/1999 at 5 P.M. See AlsogetMilliseconds() Method |
Siebel eScript Language Reference |