JavaScript Reference/Javascript Methods/setUTCSeconds
Версия от 18:30, 25 мая 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.