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) ReturnsUsageThis 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); 7200000 milliseconds is two hours, so if you run this routine on November 22, 2005 sometime between 3 and 4 P.M., you get the following result: The specified date is 11/22/2005 at 5 P.M. See AlsogetMilliseconds() Method |
Siebel eScript Language Reference |