August 1999
Intermediate to advanced
1488 pages
72h 53m
English
Date.UTC(year, month, day, hours, minutes, seconds, milliseconds)
Since the Date constructor creates new dates in local time, the UTC() method is provided to create dates in universal time (GMT). The method accepts arguments to allow you to set all aspects of a date and time, from the year to milliseconds. An integer, representing the number of milliseconds between midnight January 1, 1970 (GMT) to the date and time specified, is returned from the method. The integer can then be used to create a new Date object. The arguments and return value are in Table 6.25.
Caution
The milliseconds returned from the method are incorrect in Navigator ...
Read now
Unlock full access