JavaScript Reference/Javascript Methods/setTime
Версия от 18:30, 25 мая 2010; (обсуждение)
"setTime()" Example
<html>
<body>
<button onclick="var myDate = new Date(); myDate.setTime(myDate.getTime()); alert(myDate);">SETTIME</button>
</body>
</html>
"setTime()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |Date |
+----------------+--------------------------------------------------------------+
"setTime()" Syntax, Parameters and Note
Note:
Sets the time by supplying milliseconds elapsed since January 1, 1970.
Syntax:
dateName.setTime(param1)
Parameters:
param1 Required; the number of milliseconds.