Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

zh-cn.js 3.8KB

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