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