Visit Mozilla.org

Core JavaScript 1.5 Reference:Global Objects:Date:getUTCMilliseconds

From MDC


Contents

[edit] Summary

Returns the milliseconds in the specified date according to universal time.

Method of Date
Implemented in: JavaScript 1.3
ECMA Version: ECMA-262

[edit] Syntax

getUTCMilliseconds()

[edit] Parameters

None.

[edit] Description

The value returned by getUTCMilliseconds is an integer between 0 and 999.

[edit] Examples

[edit] Example: Using getUTCMilliseconds =

The following example assigns the milliseconds portion of the current time to the variable ms.

var ms;
Today = new Date();
ms = Today.getUTCMilliseconds();

[edit] See Also

getMilliseconds, setUTCmilliseconds