|
|
|
|
var bsYear;
|
|
|
|
|
var bsDate;
|
|
|
|
|
var bsWeek;
|
|
|
|
|
var arrLen=8; //<2F><><EFBFBD>鳤<EFBFBD><E9B3A4>
|
|
|
|
|
var sValue=0; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
var dayiy=0; //<2F><><EFBFBD><EFBFBD><EFBFBD>ڼ<EFBFBD><DABC><EFBFBD>
|
|
|
|
|
var miy=0; //<2F>·ݵ<C2B7><DDB5>±<EFBFBD>
|
|
|
|
|
var iyear=0; //<2F><><EFBFBD>ݱ<EFBFBD><DDB1><EFBFBD>
|
|
|
|
|
var dayim=0; //<2F><><EFBFBD>µڼ<C2B5><DABC><EFBFBD>
|
|
|
|
|
var spd=86400; //ÿ<><C3BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
var year1999="30;29;29;30;29;29;30;29;30;30;30;29"; //354
|
|
|
|
|
var year2000="30;30;29;29;30;29;29;30;29;30;30;29"; //354
|
|
|
|
|
var year2001="30;30;29;30;29;30;29;29;30;29;30;29;30"; //384
|
|
|
|
|
var year2002="30;30;29;30;29;30;29;29;30;29;30;29"; //354
|
|
|
|
|
var year2003="30;30;29;30;30;29;30;29;29;30;29;30"; //355
|
|
|
|
|
var year2004="29;30;29;30;30;29;30;29;30;29;30;29;30"; //384
|
|
|
|
|
var year2005="29;30;29;30;29;30;30;29;30;29;30;29"; //354
|
|
|
|
|
var year2006="30;29;30;29;30;30;29;29;30;30;29;29;30";
|
|
|
|
|
var month1999="<22><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;ʮ<><CAAE>;ʮһ<CAAE><D2BB>;ʮ<><CAAE><EFBFBD><EFBFBD>"
|
|
|
|
|
var month2001="<22><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;ʮ<><CAAE>;ʮһ<CAAE><D2BB>;ʮ<><CAAE><EFBFBD><EFBFBD>"
|
|
|
|
|
var month2004="<22><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;ʮ<><CAAE>;ʮһ<CAAE><D2BB>;ʮ<><CAAE><EFBFBD><EFBFBD>"
|
|
|
|
|
var month2006="<22><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;ʮ<><CAAE>;ʮһ<CAAE><D2BB>;ʮ<><CAAE><EFBFBD><EFBFBD>"
|
|
|
|
|
var Dn="<22><>һ;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><>ʮ;ʮһ;ʮ<><CAAE>;ʮ<><CAAE>;ʮ<><CAAE>;ʮ<><CAAE>;ʮ<><CAAE>;ʮ<><CAAE>;ʮ<><CAAE>;ʮ<><CAAE>;<3B><>ʮ;إһ;إ<><D8A5>;إ<><D8A5>;إ<><D8A5>;إ<><D8A5>;إ<><D8A5>;إ<><D8A5>;إ<><D8A5>;إ<><D8A5>;<3B><>ʮ";
|
|
|
|
|
var Ys=new Array(arrLen);
|
|
|
|
|
Ys[0]=919094400;Ys[1]=949680000;Ys[2]=980265600;Ys[3]=1013443200;Ys[4]=1044028800;Ys[5]=1074700800;Ys[6]=1107878400;Ys[7]=1138464000;
|
|
|
|
|
var Yn=new Array(arrLen); //ũ<><C5A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
Yn[0]="<22><>î<EFBFBD><C3AE>";Yn[1]="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";Yn[2]="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";Yn[3]="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";Yn[4]="<22><>δ<EFBFBD><CEB4>";Yn[5]="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";Yn[6]="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";Yn[7]="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
|
|
|
|
var D=new Date();
|
|
|
|
|
var yy=D.getYear();
|
|
|
|
|
var mm=D.getMonth()+1;
|
|
|
|
|
var dd=D.getDate();
|
|
|
|
|
var ww=D.getDay();
|
|
|
|
|
if (ww==0) ww="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
|
|
|
|
if (ww==1) ww="<22><><EFBFBD><EFBFBD>һ";
|
|
|
|
|
if (ww==2) ww="<22><><EFBFBD>ڶ<EFBFBD>";
|
|
|
|
|
if (ww==3) ww="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
|
|
|
|
if (ww==4) ww="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
|
|
|
|
if (ww==5) ww="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
|
|
|
|
if (ww==6) ww="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
|
|
|
|
ww=ww;
|
|
|
|
|
var ss=parseInt(D.getTime() / 1000);
|
|
|
|
|
if(yy<100)yy="19"+yy;
|
|
|
|
|
for(i=0;i<arrLen;i++)
|
|
|
|
|
if(ss>=Ys[i]) {
|
|
|
|
|
iyear=i;
|
|
|
|
|
sValue=ss-Ys[i]; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
}
|
|
|
|
|
dayiy=parseInt(sValue/spd)+1; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
var dpm=year1999;
|
|
|
|
|
if (iyear==1) dpm=year2000;
|
|
|
|
|
if (iyear==2) dpm=year2001;
|
|
|
|
|
if (iyear==3) dpm=year2002;
|
|
|
|
|
if (iyear==4) dpm=year2003;
|
|
|
|
|
if (iyear==5) dpm=year2004;
|
|
|
|
|
if (iyear==6) dpm=year2005;
|
|
|
|
|
if (iyear==7) dpm=year2006;
|
|
|
|
|
dpm=dpm.split(";");
|
|
|
|
|
var Mn=month1999;
|
|
|
|
|
if (iyear==2) Mn=month2001;
|
|
|
|
|
if (iyear==5) Mn=month2004;
|
|
|
|
|
if (iyear==7) Mn=month2006;
|
|
|
|
|
Mn=Mn.split(";");
|
|
|
|
|
var Dn="<22><>һ;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><><EFBFBD><EFBFBD>;<3B><>ʮ;ʮһ;ʮ<><CAAE>;ʮ<><CAAE>;ʮ<><CAAE>;ʮ<><CAAE>;ʮ<><CAAE>;ʮ<><CAAE>;ʮ<><CAAE>;ʮ<><CAAE>;<3B><>ʮ;إһ;إ<><D8A5>;إ<><D8A5>;إ<><D8A5>;إ<><D8A5>;إ<><D8A5>;إ<><D8A5>;إ<><D8A5>;إ<><D8A5>;<3B><>ʮ";
|
|
|
|
|
Dn=Dn.split(";");
|
|
|
|
|
dayim=dayiy;
|
|
|
|
|
var total=new Array(13);
|
|
|
|
|
total[0]=parseInt(dpm[0]);
|
|
|
|
|
for(i=1;i<dpm.length-1;i++)total[i]=parseInt(dpm[i])+total[i-1];
|
|
|
|
|
for(i=dpm.length-1;i>0;i--)
|
|
|
|
|
if(dayim>total[i-1]) {
|
|
|
|
|
dayim=dayim-total[i-1];
|
|
|
|
|
miy=i;
|
|
|
|
|
}
|
|
|
|
|
bsWeek=ww;
|
|
|
|
|
bsDate=yy+"<22><>"+mm+"<22><>";
|
|
|
|
|
bsDate2=dd;
|
|
|
|
|
bsYear="ũ<><C5A9>"+Yn[iyear];
|
|
|
|
|
bsYear2=Mn[miy]+Dn[dayim-1];
|
|
|
|
|
if(ss>=Ys[7]||ss<Ys[0])bsYear=Yn[7];
|
|
|
|
|
document.write(bsDate+bsDate2+"<22><> ");
|
|
|
|
|
document.write(bsWeek+" ");
|
|
|
|
|
document.write(bsYear+" "+bsYear2);
|