10.07.2017 Views

javascript_tutorial

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Javascript<br />

<br />

<br />

Output<br />

getUTCHours() : 11<br />

getUTCMilliseconds ()<br />

Javascript date getUTCMilliseconds() method returns the milliseconds in the<br />

specified date according to universal time. The value returned by<br />

getUTCMilliseconds is an integer between 0 and 999.<br />

Syntax<br />

Its syntax is as follows:<br />

Date.getUTCMilliseconds ()<br />

Return Value<br />

Returns the milliseconds in the specified date according to universal time.<br />

Example<br />

Try the following example.<br />

<br />

<br />

JavaScript getUTCMilliseconds Method<br />

<br />

<br />

<br />

var dt = new Date();<br />

document.write("getUTCMilliseconds() : " + dt.getUTCMilliseconds() );<br />

<br />

<br />

<br />

Output<br />

getUTCMilliseconds() : 206<br />

240

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!