Date.setMilliseconds

ミリ秒の値を設定

構文

dateObject.setMilliseconds(millisec)

引数

millisec=ミリ秒

例文

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

<body>

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

</body>
</html>

関連記事

スポンサーリンク

箱根園水族館

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

上に戻る