Copyright © tutorialspoint.com
Javascript date getUTCMilliseconds() method returns the milliseconds in the specified date according to universal time. The value returned by getUTCMilliseconds is an integer between 0 and 999.
Date.getUTCMilliseconds() |
Here is the detail of parameters:
NA
Returns the milliseconds in the specified date according to universal time.
The following example prints the milliseconds portion of the current time to the variable hrs.
<html> <head> <title>JavaScript getUTCMilliseconds Method</title> </head> <body> <script type="text/javascript"> var dt = new Date(); document.write("getUTCMilliseconds() : " + dt.getUTCMilliseconds() ); </script> </body> </html> |
This will produce following result for Indian time zone:
getUTCMilliseconds() : 453 |
To understand it in better way you can Try it yourself.
Copyright © tutorialspoint.com