August 1999
Intermediate to advanced
1488 pages
72h 53m
English
date.getUTCMilliseconds()
The getUTCMilliseconds() method returns the millisecond portion of the date converted to universal time and expressed as an integer from 0 to 999.
The code in Listing 6.85 displays the current millisecond in universal time using the getUTCMilliseconds() method.
<html> <script language="JavaScript"> <!-- Hide //Create a Date object that contains the current date and time. theDate = new Date(); //Display the UTC milliseconds document.write("The UTC millisecond is ",theDate.getUTCMilliseconds()); //Hide End --> </script> ... |
Read now
Unlock full access