Link Search Menu Expand Document

Date.UTC Method

Explanation Returns the elapsed time from the UTC reference time for the specified date in milliseconds.
This method is a static method.It can be called without creating an object.
Call format var v = Date.UTC (year , month , date [, hour [, min [, sec [, ms ]]]])
Return value Returns the elapsed time in milliseconds since the UTC reference time.
Arguments integer year Specify the year in UTC time.
integer month Specify the month number with January as 0.
integer date Specify the day in UTC time.
integer hour Specify the time in UTC time.
integer min Specify the minutes in UTC time.
integer sec Specifies seconds in UTC time.
integer ms Ignored.
Exception None
Example of use
var d = new Date ();
d.SetTime (Date.UTC (2002, 2, 28, 20, 0, 0));
print (d, "¥ n");
Related item