社区
JavaScript
帖子详情
javascript 如何拆日期时间2/3/2004 3:30:00 AM使分别获得时,分,秒
anycon
2004-07-20 04:03:49
javascript 如何拆日期时间2/3/2004 3:30:00 AM使分别获得时,分,秒
...全文
102
3
打赏
收藏
javascript 如何拆日期时间2/3/2004 3:30:00 AM使分别获得时,分,秒
javascript 如何拆日期时间2/3/2004 3:30:00 AM使分别获得时,分,秒
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
gjd111686
2004-07-20
打赏
举报
回复
http://blog.csdn.net/gjd111686/
gjd111686
2004-07-20
打赏
举报
回复
<script>
n0=
"#define t_width 3\n"
+"#define t_height 5\n"
+"static char t_bits[]={0xF,0x5,0x5,0x5,0xF}";
n1=
"#define t_width 3\n"
+"#define t_height 5\n"
+"static char t_bits[]={0x4,0x4,0x4,0x4,0x4}";
n2=
"#define t_width 3\n"
+"#define t_height 5\n"
+"static char t_bits[]={0xF,0x4,0xF,0x1,0xF}";
n3=
"#define t_width 3\n"
+"#define t_height 5\n"
+"static char t_bits[]={0xF,0x4,0xF,0x4,0xF}";
n4=
"#define t_width 3\n"
+"#define t_height 5\n"
+"static char t_bits[]={0x5,0x5,0xF,0x4,0x4}";
n5=
"#define t_width 3\n"
+"#define t_height 5\n"
+"static char t_bits[]={0xF,0x1,0xF,0x4,0xF}";
n6=
"#define t_width 3\n"
+"#define t_height 5\n"
+"static char t_bits[]={0xF,0x1,0xF,0x5,0xF}";
n7=
"#define t_width 3\n"
+"#define t_height 5\n"
+"static char t_bits[]={0xF,0x4,0x4,0x4,0x4}";
n8=
"#define t_width 3\n"
+"#define t_height 5\n"
+"static char t_bits[]={0xF,0x5,0xF,0x5,0xF}";
n9=
"#define t_width 3\n"
+"#define t_height 5\n"
+"static char t_bits[]={0xF,0x5,0xF,0x4,0xF}";
nD=
"#define t_width 3\n"
+"#define t_height 5\n"
+"static char t_bits[]={0x0,0x0,0xF,0x0,0x0}";
nS=
"#define t_width 3\n"
+"#define t_height 5\n"
+"static char t_bits[]={0x0,0x0,0x0,0x0,0x0}";
nT=
"#define t_width 3\n"
+"#define t_height 5\n"
+"static char t_bits[]={0x0,0xF,0x0,0xF,0x0}";
function setImg()
{
var now=new Date();
var month=now.getMonth()+1;
var strNow=strFormat(""+now.getYear(),4)+"D"+strFormat(""+month,2)+"D"+strFormat(""+now.getDate(),2)+"S"+strFormat(""+now.getHours(),2)+"T"+strFormat(""+now.getMinutes(),2)+"T"+strFormat(""+now.getSeconds(),2)+"T"+strFormat(""+now.getMilliseconds(),3);
ClockID.innerHTML="";
var vImg="";
for(iInde=0;iIndex<strNow.length;iIndex++)
{
vImg=vImg+"<img src=\"javascript:n"+strNow.substr(iIndex,1)+";\" width=\"9\" height=\"15\">\n";
ClockID.innerHTML=vImg;
}
}
function strFormat(str,iLen)
{
if(str.length<iLen)
{
for(iIndex=0;iIndex<iLen-str.length;iIndex++)
{
str="0"+str;
}
return str;
}
else
{return str;}
}
setInterval("setImg()",2000);
</script>
<center>
<div id="ClockID">
</div>
</center>
JK_10000
2004-07-20
打赏
举报
回复
<script>
var aaa=new Date("2/3/2004 4:50:59 PM");
alert(aaa.getFullYear());
alert(aaa.getMonth()+1);
alert(aaa.getDate());
alert(aaa.getHours());
alert(aaa.getMinutes());
alert(aaa.getSeconds());
</script>
JavaScript
第一季 核心语法/BOM/DOM/DHTML
本课程为
JavaScript
系列课程的第一部
分
。该课程主要讲解内容:JS核心语法、浏览器对象模型BOM、文档对象模型DOM,以及DOM编程案例讲解。
前端面试题集锦——
JavaScript
cookie是存储于访问者计算机中的变量 cookie是浏览器提供的一种机制 可以由
JavaScript
对其进行控制(设置、读取、删除)优点:极高的扩展性和可用性\1) 数据持久性。\2) 不需要任何服务器资源。 Cookie 存储在客户端并...
php 基础代码大全(不断完善中)
1 //语法错误(syntax error)在语法
分
析阶段,源代码并未被执行... 2 3 4 /* 【命名规则】 */ 5 常量名 类常量建议全大写,单词间用下划线
分
隔 // MIN_WIDTH 6 变量名建议用下划线方式
分
隔 // $var_n...
Chrome启动参数最全集合
翻译来自谷歌自动翻译,如果说明不清楚,自行查询。 序号 条件 说明 ...已经观察到,当文件读取与具有相同/prefetch:#参数的3个进程启动一致
时
,Windows预取器开始在进程启动
时
批量发出读取...
php汇总
1、酒店预订怎么实现?怎么设计表 ...用户选中要入住的酒店进入酒店详情页面,查看酒店的介绍以及酒店的房型列表,用户根据他要入住的
时
间
和离店的
时
间
,检索出这个
时
间
段内的所有可选房型(房间数...
JavaScript
87,923
社区成员
224,618
社区内容
发帖
与我相关
我的任务
JavaScript
Web 开发 JavaScript
复制链接
扫一扫
分享
社区描述
Web 开发 JavaScript
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章