<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">//èŽ·å–å¯¹åº”æ—¶é—´çš„å¹´ä»½
function GetYear(DateGL) {
    var yyyy = DateGL.getYear();
    if (yyyy &lt; 1000)
    {
        yyyy += 1900;
    }
    return parseInt(yyyy);
}

//ä¸»è¦ç¨‹åºå…¥å£
function RunGLNL() {
    var today = new Date();
    var d = new Array("æ˜ŸæœŸæ—¥", "æ˜ŸæœŸä¸€", "æ˜ŸæœŸäºŒ", "æ˜ŸæœŸä¸‰", "æ˜ŸæœŸå››", "æ˜ŸæœŸäº”", "æ˜ŸæœŸå…­");
    var DDDD = GetYear(today) + "å¹´" + (today.getMonth() + 1) + "æœˆ" + today.getDate() + "æ—¥";
    DDDD = DDDD + " " + d[today.getDay()];			//æ˜¾ç¤ºæ˜ŸæœŸå‡&nbsp;
//    DDDD = DDDD + " " + (CnDateofDateStr(today));               //æ˜¾ç¤ºå†œåŽ†
//    DDDD = DDDD + " " + SolarTerm(today);			//æ˜¾ç¤ºèŠ‚æ°”
    document.write(DDDD);
}

//è¿”å›žå½“å‰æ—¶é—´æ‰€æœ‰çš„å¤©æ•°
function DaysNumberofDate(DateGL) {
    return parseInt((Date.parse(DateGL) - Date.parse(GetYear(DateGL) + "/1/1")) / 86400000) + 1;
}

//æ&nbsp;¹æ®æ—¶é—´è¾“å‡ºå†œåŽ†
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, 0x00, 0x8a, 0xad, 0x55, 0x02,
        0x15, 0x55, 0xaa, 0x00, 0x82, 0x55, 0x6c, 0x07, 0x0d, 0xc9, 0x76, 0x00, 0x17, 0x64, 0xb7, 0x00,
        0x86, 0xe4, 0xae, 0x05, 0x11, 0xea, 0x56, 0x00, 0x1b, 0x6d, 0x2a, 0x00, 0x88, 0x5a, 0xaa, 0x04,
        0x14, 0xad, 0x55, 0x00, 0x81, 0xaa, 0xd5, 0x09, 0x0b, 0x52, 0xea, 0x00, 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 CnMonthDays = new Array();
    var CnBeginDay;
    var LeapMonth;
    var Bytes = new Array();
    var I;
    var CnMonthData;
    var DaysCount;
    var CnDaysCount;
    var ResultMonth;
    var ResultDay;
    var yyyy = GetYear(DateGL);
    if ((yyyy &lt; 1997) || (yyyy &gt; 2050)) {
        return 0;
    }
    Bytes[0] = CnData[(yyyy - 1997) * 4];
    Bytes[1] = CnData[(yyyy - 1997) * 4 + 1];
    Bytes[2] = CnData[(yyyy - 1997) * 4 + 2];
    Bytes[3] = CnData[(yyyy - 1997) * 4 + 3];
    if ((Bytes[0] &amp; 0x80) != 0) {
        CnMonth[0] = 12;
    }
    else {
        CnMonth[0] = 11;
    }
    CnBeginDay = (Bytes[0] &amp; 0x7f);
    CnMonthData = Bytes[1];
    CnMonthData = CnMonthData &lt;&lt; 8;
    CnMonthData = CnMonthData | Bytes[2];
    LeapMonth = Bytes[3];
    for (I = 15; I &gt;= 0; I--) {
        CnMonthDays[15 - I] = 29;
        if (((1 &lt;&lt; I) &amp; CnMonthData) != 0) {
            CnMonthDays[15 - I]++;
        }
        if (CnMonth[15 - I] == LeapMonth) {
            CnMonth[15 - I + 1] = -LeapMonth;
        }
        else {
            if (CnMonth[15 - I] &lt; 0) {
                CnMonth[15 - I + 1] = -CnMonth[15 - I] + 1;
            }
            else {
                CnMonth[15 - I + 1] = CnMonth[15 - I] + 1;
            }
            if (CnMonth[15 - I + 1] &gt; 12) {
                CnMonth[15 - I + 1] = 1;
            }
        }
    }
    DaysCount = DaysNumberofDate(DateGL) - 1;
    if (DaysCount &lt;= (CnMonthDays[0] - CnBeginDay)) {
        if ((yyyy &gt; 1901) &amp;&amp; (CnDateofDate(new Date((yyyy - 1) + "/12/31")) &lt; 0)) {
            ResultMonth = -CnMonth[0];
        }
        else {
            ResultMonth = CnMonth[0];
        }
        ResultDay = CnBeginDay + DaysCount;
    }
    else {
        CnDaysCount = CnMonthDays[0] - CnBeginDay;
        I = 1;
        while ((CnDaysCount &lt; DaysCount) &amp;&amp; (CnDaysCount + CnMonthDays[I] &lt; DaysCount)) {
            CnDaysCount += CnMonthDays[I];
            I++;
        }
        ResultMonth = CnMonth[I];
        ResultDay = DaysCount - CnDaysCount;
    }
    if (ResultMonth &gt; 0) {
        return ResultMonth * 100 + ResultDay;
    }
    else {
        return ResultMonth * 100 - ResultDay;
    }
}

//è¿”å›žå†œåŽ†çš„å¹´ä»½
function CnYearofDate(DateGL) {
    var YYYY = GetYear(DateGL);
    var MM = DateGL.getMonth() + 1;
    var CnMM = parseInt(Math.abs(CnDateofDate(DateGL)) / 100);
    if (CnMM &gt; MM)
        YYYY--;
    YYYY -= 1864;
    return CnEra(YYYY) + "å¹´";
}

//è¿”å›žå†œåŽ†çš„æœˆä»½
function CnMonthofDate(DateGL) {
    var CnMonthStr = new Array("é›¶", "æ­£", "äºŒ", "ä¸‰", "å››", "äº”", "å…­", "ä¸ƒ", "å…«", "ä¹", "å", "å†¬", "è…Š");
    var Month;
    Month = parseInt(CnDateofDate(DateGL) / 100);
    if (Month &lt; 0) {
        return "é—°" + CnMonthStr[-Month] + "æœˆ";
    }
    else {
        return CnMonthStr[Month] + "æœˆ";
    }
}

//è¿”å›žå†œåŽ†çš„å¤©æ•°
function CnDayofDate(DateGL) {
    var CnDayStr = new Array("é›¶",
        "åˆä¸€", "åˆäºŒ", "åˆä¸‰", "åˆå››", "åˆäº”",
        "åˆå…­", "åˆä¸ƒ", "åˆå…«", "åˆä¹", "åˆå",
        "åä¸€", "åäºŒ", "åä¸‰", "åå››", "åäº”",
        "åå…­", "åä¸ƒ", "åå…«", "åä¹", "äºŒå",
        "å»¿ä¸€", "å»¿äºŒ", "å»¿ä¸‰", "å»¿å››", "å»¿äº”",
        "å»¿å…­", "å»¿ä¸ƒ", "å»¿å…«", "å»¿ä¹", "ä¸‰å");
    var Day;
    Day = (Math.abs(CnDateofDate(DateGL))) % 100;
    return CnDayStr[Day];
}

//è¿”å›žå½“å‰æ—¶é—´ä¸€å…±æœ‰å¤šå°‘ä¸ªæœˆä»½
function DaysNumberofMonth(DateGL) {
    var MM1 = GetYear(DateGL);
    var MM2 = MM1;
    MM1 += "/" + (DateGL.getMonth() + 1);
    MM2 += "/" + (DateGL.getMonth() + 2);
    MM1 += "/1";
    MM2 += "/1";
    return parseInt((Date.parse(MM2) - Date.parse(MM1)) / 86400000);
}

//ç”¨å¤ä»£è®°å¹´æ³•æ¥è¡¨ç¤ºå¹´ä»½
function CnEra(YYYY) {
    var Tiangan = new Array("ç”²", "ä¹™", "ä¸™", "ä¸", "æˆŠ", "å·±", "åºš", "è¾›", "å£¬", "ç™¸");
    //var Dizhi=new Array("å­(é¼&nbsp;)","ä¸‘(ç‰›)","å¯…(è™Ž)","å¯(å…”)","è¾°(é¾™)","å·³(è›‡)","åˆ(é©¬)","æœª(ç¾Š)","ç”³(çŒ´)","é…‰(é¸¡)","æˆŒ(ç‹—)","äº¥(çŒª)");
    var Dizhi = new Array("å­", "ä¸‘", "å¯…", "å¯", "è¾°", "å·³", "åˆ", "æœª", "ç”³", "é…‰", "æˆŒ", "äº¥");
    return Tiangan[YYYY % 10] + Dizhi[YYYY % 12];
}

//è¿”å›žå½“å‰çš„å†œåŽ†æ•´ä¸ªå­—ç¬¦ä¸²
function CnDateofDateStr(DateGL) {
    if (CnMonthofDate(DateGL) == "é›¶æœˆ")
        return "è¯·è°ƒæ•´æ‚¨çš„è®¡ç®—æœºæ—¥æœŸ!";
    else
        return "å†œåŽ† " + CnYearofDate(DateGL) + " " + CnMonthofDate(DateGL) + CnDayofDate(DateGL);
}

//è¿”å›žå½“å‰æ—¶é—´çš„èŠ‚æ°”
function SolarTerm(DateGL) {
    var SolarTermStr = new Array(
        "å°å¯’", "å¤§å¯’", "ç«‹æ˜¥", "é›¨æ°´", "æƒŠè›°", "æ˜¥åˆ†",
        "æ¸…æ˜Ž", "è°·é›¨", "ç«‹å¤", "å°æ»¡", "èŠ’ç§", "å¤è‡³",
        "å°æš‘", "å¤§æš‘", "ç«‹ç§‹", "å¤„æš‘", "ç™½éœ²", "ç§‹åˆ†",
        "å¯’éœ²", "éœœé™", "ç«‹å†¬", "å°é›ª", "å¤§é›ª", "å†¬è‡³");
    var DifferenceInMonth = new Array(
        1272060, 1275495, 1281180, 1289445, 1299225, 1310355,
        1321560, 1333035, 1342770, 1350855, 1356420, 1359045,
        1358580, 1355055, 1348695, 1340040, 1329630, 1318455,
        1306935, 1297380, 1286865, 1277730, 1274550, 1271556);
    var DifferenceInYear = 31556926;
    var BeginTime = new Date(1901 / 1 / 1);
    BeginTime.setTime(947120460000);
    for (; GetYear(DateGL) &lt; GetYear(BeginTime); ) {
        BeginTime.setTime(BeginTime.getTime() - DifferenceInYear * 1000);
    }
    for (; GetYear(DateGL) &gt; GetYear(BeginTime); ) {
        BeginTime.setTime(BeginTime.getTime() + DifferenceInYear * 1000);
    }
    for (var M = 0; DateGL.getMonth() &gt; BeginTime.getMonth(); M++) {
        BeginTime.setTime(BeginTime.getTime() + DifferenceInMonth[M] * 1000);
    }
    if (DateGL.getDate() &gt; BeginTime.getDate()) {
        BeginTime.setTime(BeginTime.getTime() + DifferenceInMonth[M] * 1000);
        M++;
    }
    if (DateGL.getDate() &gt; BeginTime.getDate()) {
        BeginTime.setTime(BeginTime.getTime() + DifferenceInMonth[M] * 1000);
        M == 23 ? M = 0 : M++;
    }
    var JQ;
    if (DateGL.getDate() == BeginTime.getDate()) {
        JQ = " ä»Šå¤©æ˜¯&lt;font color='#FF0000'&gt;&lt;b&gt;" + SolarTermStr[M] + "&lt;/b&gt;&lt;/font&gt;";
    }
    else if (DateGL.getDate() == BeginTime.getDate() - 1) {
        JQ = " æ˜Žå¤©æ˜¯&lt;font color='#FF0000'&gt;&lt;b&gt;" + SolarTermStr[M] + "&lt;/b&gt;&lt;/font&gt;";
    }
    else if (DateGL.getDate() == BeginTime.getDate() - 2) {
        JQ = " åŽå¤©æ˜¯&lt;font color='#FF0000'&gt;&lt;b&gt;" + SolarTermStr[M] + "&lt;/b&gt;&lt;/font&gt;";
    }
    else {
        JQ = " "
        if (DateGL.getMonth() == BeginTime.getMonth()) {
            JQ += " æœ¬æœˆ";
        }
        else {
            JQ += " ä¸‹æœˆ";
        }
        JQ += BeginTime.getDate() + "æ—¥" + "&lt;font color='#FF0000'&gt;&lt;b&gt;" + SolarTermStr[M] + "&lt;/b&gt;&lt;/font&gt;";
    }
    return JQ;
}

function CAL()
{
}

//è¿è¡Œå…¥å£
RunGLNL();

//æ˜¾ç¤ºå½“å‰æ—¶é’ˆæ•°
function CurentTime() {
    var now = new Date();
    var hh = now.getHours();
    var mm = now.getMinutes();
    var ss = now.getTime() % 60000;
    ss = (ss - (ss % 1000)) / 1000;
    var clock = hh + ':';
    if (mm &lt; 10)
        clock += '0';
    clock += mm + ':';
    if (ss &lt; 10)
        clock += '0';
    clock += ss;
    return(clock);
}</pre></body></html>