Date().getSeconds() : getSeconds « Date « JavaScript Tutorial






The getSeconds() method returns the seconds portion of the Date object expressed as an integer from 0 to 59.

<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
dateVar = new Date();
alert(dateVar.getSeconds());

//  -->
</script>
</head>
<body>

</body>
</html>








12.12.getSeconds
12.12.1.Date().getSeconds()