PageSourceSearch

https://cdn1.jijyun.cn/p/cache/winDeal/js/zh-cn.js

js jijyun.cn collected 2026-09-24 09:19:42 UTC 3,619 bytes, 112 lines download raw bytes

1//! moment.js locale configuration
2//! locale : Chinese (China) [zh-cn]
3//! author : suupic : https://github.com/suupic
4//! author : Zeno Zeng : https://github.com/zenozeng
5
6;(function (global, factory) {
7   typeof exports === 'object' && typeof module !== 'undefined'
8       && typeof require === 'function' ? factory(require('../moment')) :
9   typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10   factory(global.moment)
11}(this, (function (moment) { 'use strict';
12
13
14var zhCn = moment.defineLocale('zh-cn', {
15    months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
16    monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
17    weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
18    weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
19    weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
20    longDateFormat : {
21        LT : 'HH:mm',
22        LTS : 'HH:mm:ss',
23        L : 'YYYY/MM/DD',
24        LL : 'YYYY年M月D日',
25        LLL : 'YYYY年M月D日Ah点mm分',
26        LLLL : 'YYYY年M月D日ddddAh点mm分',
27        l : 'YYYY/M/D',
28        ll : 'YYYY年M月D日',
29        lll : 'YYYY年M月D日 HH:mm',
30        llll : 'YYYY年M月D日dddd HH:mm'
31    },
32    meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
33    meridiemHour: function (hour, meridiem) {
34        if (hour === 12) {
35            hour = 0;
36        }
37        if (meridiem === '凌晨' || meridiem === '早上' ||
38                meridiem === '上午') {
39            return hour;
40        } else if (meridiem === '下午' || meridiem === '晚上') {
41            return hour + 12;
42        } else {
43            // '中午'
44            return hour >= 11 ? hour : hour + 12;
45        }
46    },
47    meridiem : function (hour, minute, isLower) {
48        var hm = hour * 100 + minute;
49        if (hm < 600) {
50            return '凌晨';
51        } else if (hm < 900) {
52            return '早上';
53        } else if (hm < 1130) {
54            return '上午';
55        } else if (hm < 1230) {
56            return '中午';
57        } else if (hm < 1800) {
58            return '下午';
59        } else {
60            return '晚上';
61        }
62    },
63    calendar : {
64        sameDay : '[今天]LT',
65        nextDay : '[明天]LT',
66        nextWeek : '[下]ddddLT',
67        lastDay : '[昨天]LT',
68        lastWeek : '[上]ddddLT',
69        sameElse : 'L'
70    },
71    dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
72    ordinal : function (number, period) {
73        switch (period) {
74            case 'd':
75            case 'D':
76            case 'DDD':
77                return number + '日';
78            case 'M':
79                return number + '月';
80            case 'w':
81            case 'W':
82                return number + '周';
83            default:
84                return number;
85        }
86    },
87    relativeTime : {
88        future : '%s内',
89        past : '%s前',
90        s : '几秒',
91        ss : '%d 秒',
92        m : '1 分钟',
93        mm : '%d 分钟',
94        h : '1 小时',
95        hh : '%d 小时',
96        d : '1 天',
97        dd : '%d 天',
98        M : '1 个月',
99        MM : '%d 个月',
100        y : '1 å¹´',
101        yy : '%d å¹´'
102    },
103    week : {
104        // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
105        dow : 1, // Monday is the first day of the week.
106        doy : 4  // The week that contains Jan 4th is the first week of the year.
107    }
108});
109
110return zhCn;
111
112})));

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.