新闻正文

getUTCMilliseconds 方法

来源:      2006-12-10 1  2007-5-17 10:25:04 网友评论 0 条 字体:[ ] ~我要投稿!

 

返回 Date 对象中用全球标准时间 (UTC)表示的毫秒值。

字串7

字串2

dateObj.getUTCMilliseconds()

字串9

字串5

必选项 dateObj 参数为 Date 对象。

字串9

说明

要获取用本地时间表示的毫秒数,请使用 getMilliseconds 方法。

字串8

字串2

返回的毫秒值的范围是 0-999。

字串2

示例

下面这个例子说明了 getUTCMilliseconds 方法的用法。 字串1

function UTCTimeDemo(){
   var d, s = "当前全球标准时间 (UTC) : ";
   var c = ":";
   d = new Date();
   s += d.getUTCHours() + c;
   s += d.getUTCMinutes() + c;
   s += d.getUTCSeconds() + c;
   s += d.getUTCMilliseconds();
   return(s);
} 

字串2

字串1





上一篇:getUTCFullYear 方法
下一篇:getUTCMinutes 方法
用户名:新注册) 密码: 匿名评论 [所有评论]
评论内容:不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
本栏搜索

  • Google 17Admin.Net
推荐新闻
关于本站 网站地图 Friefox Picasa 网站赚钱 联系方式  
Copyright 2006-2008 www.17admin.net All Rights Reserved
免责申明:一起站长吧(www.17admin.net)上的所提供文章和资源大部分来源于网络,为方便本人
及广大新手站长学习而收集整理而来。如有侵犯你的版权,请立即联系本站,本站将在3个工作日内删除 。