JavaScipt@Workshop 
HOME > JavaScriptリファレンス > Date オブジェクト

getMilliseconds メソッド

dateObj.getMilliseconds()

引数

なし

解説

Date オブジェクトよりミリ秒の部分を返します。
戻り値のミリ秒の範囲は、0 〜 999 です。

使用例

var d = new Date();
var s = d.getMilliseconds(); // sはdのミリ秒の部分


スポンサードリンク

Copyright (C) 2006-2008 JavaScipt@Workshop All rights reserved.