getUTCMillisecondsメソッド
getUTCMillisecondsメソッドはUTC(協定世界時)のミリ秒(0~999)を取得を取得します。
書式 | getUTCMilliseconds() |
---|---|
戻り値 | UTC(協定世界時)のミリ秒(0~999)を返す |
引数 | なし |
使用例 | UTC(協定世界時)のミリ秒を求める。 |
---|
//UTC(協定世界時)が2013/11/24 12:34:56 555の場合、555を返す
var dt = new Date();
document.write('ミリ秒(UTC):', dt.getUTCMilliseconds());
関連メンバ | 説明 |
---|---|
getUTCFullYear | 年を取得(4桁) |
getUTCMonth | 月を取得(0~11) |
getUTCDate | 日を取得(1~31) |
getUTCDay | 曜日を取得(0~6) |
getUTCHours | 時を取得(0~23) |
getUTCMinutes | 分を取得(0~59) |
getUTCSeconds | 秒を取得(0~59) |