PageSourceSearch

https://att13.skykiwi.com/js/date.js

js skykiwi.com collected 2026-10-02 18:12:17 UTC 985 bytes, 29 lines download raw bytes

1    function formatChineseLunar(date) {
2        try {
3            const fmt = new Intl.DateTimeFormat('zh-CN-u-ca-chinese-nu-hanidec', {
4                year: 'numeric',
5                month: 'long',
6                day: 'numeric'
7            });
8            return fmt.format(date).replace(/\s+/g, '');
9        } catch (e) {
10            return "(当前环境不支持农历显示)";
11        }
12    }
13
14    function updateLine() {
15        const now = new Date();
16        const y = now.getFullYear();
17        const m = now.getMonth() + 1;
18        const d = now.getDate();
19        const weekdays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
20
21        const gregorian = `${y}年${m}月${d}日`;
22        const weekday = weekdays[now.getDay()];
23        const lunar = formatChineseLunar(now);
24
25        document.getElementById('date-line').textContent =
26            `${gregorian} ${weekday} 农历:${lunar}`;
27    }
28
29    updateLine();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.