Visit Mozilla.org

Core JavaScript 1.5 Reference:Global Objects:Date:getUTCMinutes

From MDC


Contents

[edit] Summary

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

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

[edit] Syntax

getUTCMinutes()

[edit] Parameters

None.

[edit] Description

The value returned by getUTCMinutes is an integer between 0 and 59.

[edit] Examples

[edit] Example: Using getUTCMinutes

The following example assigns the minutes portion of the current time to the variable min.

var min;
Today = new Date();
min = Today.getUTCMinutes();

[edit] See Also

getMinutes, setUTCMinutes