Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > Universal Time Methods > Date.UTC() Static MethodThis method interprets its parameters as a date and returns the number of milliseconds between midnight, January 1, 1970, and the date and time specified. SyntaxDate.UTC(year, month, days, [, hours[, minutes[, seconds]]]) ReturnsAn integer representing the number of milliseconds before or after midnight January 1, 1970, of the specified date and time. UsageDate.UTC is a static method, invoked using the Date constructor rather than a variable. The parameters are interpreted as referring to Greenwich mean time (GMT). ExampleThis example shows the proper construction of a Date.UTC declaration and demonstrates that the function behaves as specified. function clickme_Click () A sample run of this code produced the following result. The specified date is Mon Jan 22 10:11:12 2001 GMT See Also |
Siebel eScript Language Reference |