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
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';
13 //! moment.js locale configuration
15 var zhCn = moment.defineLocale('zh-cn', {
16 months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
19 monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
22 weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
23 weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
24 weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
30 LLL: 'YYYY年M月D日Ah点mm分',
31 LLLL: 'YYYY年M月D日ddddAh点mm分',
34 lll: 'YYYY年M月D日 HH:mm',
35 llll: 'YYYY年M月D日dddd HH:mm',
37 meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
38 meridiemHour: function (hour, meridiem) {
42 if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
44 } else if (meridiem === '下午' || meridiem === '晚上') {
48 return hour >= 11 ? hour : hour + 12;
51 meridiem: function (hour, minute, isLower) {
52 var hm = hour * 100 + minute;
55 } else if (hm < 900) {
57 } else if (hm < 1130) {
59 } else if (hm < 1230) {
61 } else if (hm < 1800) {
70 nextWeek: '[下]ddddLT',
72 lastWeek: '[上]ddddLT',
75 dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
76 ordinal: function (number, period) {
108 // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
109 dow: 1, // Monday is the first day of the week.
110 doy: 4, // The week that contains Jan 4th is the first week of the year.