JavaScript Reference/Javascript Methods/setUTCMinutes — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:22, 26 мая 2010
"setUTCMinutes()" Example
<html>
<body>
<button onclick="var myDate = new Date(); myDate.setUTCMinutes(22);
alert(myDate);">SETUTCMINUTES</button>
</body>
</html>
"setUTCMinutes()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |Date |
+----------------+--------------------------------------------------------------+
"setUTCMinutes()" Syntax, Parameters and Note
Note:
Uses UTC time to set the minutes.
Syntax:
dateName.setUTCMinutes(param1, param2, param3)
Parameters:
param1 Required; the minutes. Value: 0 to 59.
param2 Optional; the seconds. Value: 0 to 59.
param3 Optional; the milliseconds elapsed in the current second.
Value: 0 to 999.