Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Methods Reference > Date and Time Methods > Set Milliseconds MethodThe Set Milliseconds method sets the millisecond of a date object to a date expressed in milliseconds relative to the system time. The value of dateVar becomes equivalent to the number of milliseconds from the time on the system clock. You can use a positive number for a later time and a negative number for an earlier time. FormatdateVar.setMilliseconds(millisecond) Table 67 describes the arguments for the Set Milliseconds method.
ExampleThe following example accepts a number of milliseconds as input and converts it to the date relative to the date and time in the computer clock: function test2_Click () switch(anHour) TheApplication().RaiseErrorText("The specified date is " + aMonth + "/" + aDay + "/" + aYear + " at " + anHour); The number 7200000 milliseconds is two hours. If you run this code on November 22, 2005 between 3 P.M. and 4 P.M., then it provides the following result: |
Siebel eScript Language Reference | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |