Date.setSeconds

秒の値を設定

構文

dateObject.setSeconds(sec,millisec)

引数

sec=秒, millisec=ミリ秒(省略可能)

例文

<html>
<head>
<title>Date.setSeconds</title>
</head>

<body>

<!--秒の値を設定のサンプル-->
<script type="text/javascript">
var dt = new Date();
dt.setSeconds(1);
document.write(dt);
</script>

</body>
</html>

関連記事

スポンサーリンク

他のページを参考にする ソースを見る

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る