function RunGLNL(){
var today=new Date()
var d=new Array("일요일","월요일","화요일","수요일","목요일","금요일", " Saturday");
var DDDD=(today.getYear()today.getYear() 1900:today.getYear()) "연도" (today.getMonth() 1) "월" 오늘 .getDate() "일";
DDDD = DDDD " " d[today.getDay()]
DDDD = DDDD " " (CnDateofDateStr(today))
//DDDD " " SolarTerm(오늘);
document.write(DDDD);
}
function DaysNumberofDate(DateGL){
returnparseInt((Date.parse(DateGL)-Date.parse(DateGL.getYear( ) "/1/1"))/86400000) 1
}
function CnDateofDate(DateGL){
var CnData=new Array(
0x16,0x2a,0xda,0x00,0x83, 0x49 , 0xB6,0X05,0X0E, 0x64,0xBB, 0x00,0x19,0xb2,0x5b, 0x00, 0x87,0x6a, 0x57,0x04,0x12,0x75,0x2b, 0x00,0x1d, 0xB6,0X95,0X95,0X95,0X95,0X95,0X95,0X95, 0x55,0x02, 0x86,0xe4.0xe46,0xe46,0xe4,0xe. 0x11,0xea,0x56,0x00,0x1b,0x6d,0x2a,0x00,0x88,0x5a,0xaa,0x04,
0x14,0xad,0x55,0x00,0x81,0xaa,0xd5,0x09,0x0b,0x52, 0xea,0x0 0 ,0x16,0xa9,0x6d,0x00,
0x84,0xa9,0x5d,0x06,0x0f,0xd4,0xae,0x00,0x1a,0xea,0x4d,0x00,0x87,0xba,0x55,0x04
) ; >var CnMonth=new Array();
var CnBeginDay;
var Bytes=new Array(); 🎜>var CnMonthData;
var DaysCount;
var ResultMonth;
var ResultDay;
var mm= DateGL.getMonth () 1; var dd=DateGL.getDate();
if(yyyyif ((yyyy
2020)){
return 0; 🎜>}
바이트[0] = CnData[(yyyy - 1997) * 4]
바이트[1] = CnData[(yyyy - 1997) * 4 1]
바이트[ 2] = CnData[(yyyy - 1997) * 4 2];
Bytes[3] = CnData[(yyyy - 1997) * 4 3]
if ((Bytes[0] & 0x80) != 0) CnMonth[0] = 12;}
else {CnMonth[0] = 11;}
CnBeginDay = (Bytes[0] & 0x7f) CnMonthData = CnMonthData = CnMonthData CnMonthData = Bytes[2];
LeapMonth = Bytes[3]
for (I=15;I>=0;I--); [15 - I] = 29;
if (((1 CnMonthDays[15 - I] ;}
if (CnMonth[15 - I] == LeapMonth ){
CnMonth[15 - I 1] = - LeapMonth;}
else{
if (CnMonth[15 - I] else {CnMonth[15 - I 1] = CnMonth[15 - I] 1;}
if (CnMonth[15 - I 1] > 12 ){ CnMonth [15 - I 1] = 1;} }
}
DaysCount = DaysNumberofDate(DateGL) - 1;
if (DaysCount if ( (yyyy > 1901) && (CnDateofDate(new Date((yyyy - 1) "/12/31")) ResultMonth = - CnMonth[0];}
else { ResultMonth = CnMonth [0];}
ResultDay = CnBeginDay DaysCount;
}
else{ CnDaysCount = CnMonthDays[0] - CnBeginDay;
I = 1
while(( CnDaysCount CnDaysCount = CnMonthDays[I];
I
} ResultMonth = CnMonth[I] ResultDay = DaysCount - CnDaysCount ;
}
if (ResultMonth > 0){
return ResultMonth * 100 ResultDay;}
else{return ResultMonth * 100 - ResultDay;}
}
함수 CnYearofDate(DateGL) {
var YYYY=DateGL.getYear(); var MM=DateGL.getMonth() 1;
var CnMM=parseInt(Math.abs(CnDateofDate(DateGL))/100); if(YYYYif(CnMM>MM) YYYY--;
YYYY-=1864
return CnEra(YYYY)
}
function CnMonthofDate(DateGL){
var CnMonthStr=new Array("0","양수","2","3","4","5","6","7", "8" ,"9","10","11","拉");
var Month;
Month = parsInt(CnDateofDate(DateGL)/100)
if (월 else{return CnMonthStr[월] "월";}
}
function CnDayofDate(DateGL){
var CnDayStr =new Array( "zero", "중학교 첫째 날", "중학교 둘째 날", "중학교 셋째 날", "중학교 넷째 날", "중학교 다섯째 날" ",
"중학교 여섯째 날", "중학교 일곱째 날", " "여덟째 날", "아홉째 날", "열째 날",
"열한째", "십이일", "열셋째", "열넷째", "열다섯째",
"열여섯째", "열일곱일", "열여덟", "열아홉", "스물",
"스물하나", "스물둘", "스물셋", "스물넷", "스물다섯",
"스물여섯", "스물일곱", "스물여덟", "스물아홉", "서른");
var Day; Day = (Math.abs(CnDateofDate(DateGL))) 0;
return CnDayStr[Day]
} function DaysNumberofMonth(DateGL){
var MM1=DateGL.getYear();
MM1MM1 ="/" (DateGL.getMonth() 1); ="/" (DateGL.getMonth() 2);
MM1 ="/1" ;
MM2 ="/1";
returnparseInt((Date.parse(MM2)-Date.parse (MM1))/86400000)
}
function CnEra(YYYY){
var Tiangan=new Array("A","B","C","D","W", "지","G","신","인","縸");
//var Dizhi=new Array("자(쥐)","초(소)","음(호랑이) )","卯(토끼)","陈(龙)","巳(SNAKE) ",
//"Wu(말)", "Wei(양)", "Shen(원숭이)", "너(닭)", "쑤(개)", "하이(돼지)")
var Dizhi=new Array("子","Chou","음","卯","陈" ,"巳","武","伟","神","酉","戌","海")
return Tiangan[YYYY ] Dizhi[YYYY ]
}
function CnDateofDateStr(DateGL){
if(CnMonthofDate(DateGL)=="0월") return "컴퓨터 날짜를 조정하세요!"
else return "음력:" CnYearofDate(DateGL) " " CnMonthofDate(DateGL) CnDayofDate(DateGL);
}
function SolarTerm(DateGL){
var SolarTermStr=new Array(
"작은 추위","큰 추위","봄의 시작" ,"Rain" , "Jingzhe", "Spring Equinox",
"Qingming", "Grain Rain", "여름의 시작", "Xiaoman", "Grain of Light", "Summer Solstice",
"소더위", "대더위", "가을의 시작", "여름의 끝", "하얀 이슬", "추분",
"차가운 이슬", "서리 하강", "겨울의 시작" , "가벼운 눈", "폭력", "겨울 동지"); 1358580,1 355055,1348695,1340040,1329630,1318455,
1306935, 1297380,1286865,1277730,1274 550,1271556);
var DifferenceInYear=31556926
var BeginTime=new Date(1901/1/1);
BeginTime.setTime(947120460000)
for ( ;DateGL.getYear()
}
for(;DateGL.getYear()>BeginTime .getYear();){
}
for(var M=0;DateGL.getMonth()>BeginTime.getMonth(); M ){
BeginTime.setTime(BeginTime.getTime() DifferenceInMonth[M]*1000);
}
if(DateGL.getDate()>BeginTime.getDate()){
BeginTime.setTime(BeginTime.getTime() DifferenceInMonth[M]*1000)
M
}
if(DateGL.getDate()>BeginTime.getDate()){
BeginTime.setTime(BeginTime .getTime() DifferenceInMonth[M]*1000)
M==23?M=0 :M
}
var JQ;
if(DateGL.getDate()==BeginTime.getDate()){
JQ=" 오늘은
" SolarTermStr[M ] "
"; } else if(DateGL.getDate()== BeginTime.getDate()-1){ JQ=" 내일은
" SolarTermStr[M] "
"; } else if(DateGL.getDate ()==BeginTime.getDate()-2){ JQ=" 내일 모레 is
" SolarTermStr[M] "
"; } else{ JQ=" "
if(DateGL.getMonth()==BeginTime .getMonth()){
JQ =" 이번 달";
}
else{
JQ = "다음 달"
}
JQ =BeginTime.getDate() " Day" "
" SolarTermStr[M] "
"; } return JQ; }
function CAL()
{}
RunGLNL()