📄 tfunc8.js
字号:
var hzWeek= new Array("日","一","二","三","四","五","六","日");
function cweekday(wday){return hzWeek[wday];}
nextday=false;last0=t0;lmonth=0;lday=0;
function getlday(){lObj=new Lunar(nyear,nmonth-1,nday);lmonth=GetcMon(lObj.month);lday=GetcDay(lObj.day);}
getlday();
//skipcount=0;
function NewTick(){noww=new Date();t1=noww.getTime();
tnext=last0+200;
if(t1<tnext){t1=tnext;}
else if((t1-tnext)>45000&last0!=t0){t1=tnext;}
last0=t1;
noww.setTime(t1+dectime);
if(noww.getDate()!=nday){
nextday=true;
nyear=noww.getFullYear();
nmonth=noww.getMonth()+1;
nwday=noww.getDay();
nday=noww.getDate();
getlday();}
nhrs=noww.getHours();nmin=noww.getMinutes();nsec=noww.getSeconds();
}
dectime=new Date(nyear,nmonth-1,nday,nhrs,nmin,nsec).getTime()-t0;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -