GPQAPP
1//! moment.js locale configuration
2//! locale : Chinese (Hong Kong) [zh-hk]
3//! author : Ben : https://github.com/ben-lin
4//! author : Chris Lam : https://github.com/hehachris
5//! author : Konstantin : https://github.com/skfd
6//! author : Anthony : https://github.com/anthonylau
7
8;(function (global, factory) {9typeof exports === 'object' && typeof module !== 'undefined'10&& typeof require === 'function' ? factory(require('../moment')) :11typeof define === 'function' && define.amd ? define(['../moment'], factory) :12factory(global.moment)13}(this, (function (moment) { 'use strict';14
15//! moment.js locale configuration16
17var zhHk = moment.defineLocale('zh-hk', {18months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(19'_'20),21monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(22'_'23),24weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),25weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),26weekdaysMin: '日_一_二_三_四_五_六'.split('_'),27longDateFormat: {28LT: 'HH:mm',29LTS: 'HH:mm:ss',30L: 'YYYY/MM/DD',31LL: 'YYYY年M月D日',32LLL: 'YYYY年M月D日 HH:mm',33LLLL: 'YYYY年M月D日dddd HH:mm',34l: 'YYYY/M/D',35ll: 'YYYY年M月D日',36lll: 'YYYY年M月D日 HH:mm',37llll: 'YYYY年M月D日dddd HH:mm',38},39meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,40meridiemHour: function (hour, meridiem) {41if (hour === 12) {42hour = 0;43}44if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {45return hour;46} else if (meridiem === '中午') {47return hour >= 11 ? hour : hour + 12;48} else if (meridiem === '下午' || meridiem === '晚上') {49return hour + 12;50}51},52meridiem: function (hour, minute, isLower) {53var hm = hour * 100 + minute;54if (hm < 600) {55return '凌晨';56} else if (hm < 900) {57return '早上';58} else if (hm < 1200) {59return '上午';60} else if (hm === 1200) {61return '中午';62} else if (hm < 1800) {63return '下午';64} else {65return '晚上';66}67},68calendar: {69sameDay: '[今天]LT',70nextDay: '[明天]LT',71nextWeek: '[下]ddddLT',72lastDay: '[昨天]LT',73lastWeek: '[上]ddddLT',74sameElse: 'L',75},76dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,77ordinal: function (number, period) {78switch (period) {79case 'd':80case 'D':81case 'DDD':82return number + '日';83case 'M':84return number + '月';85case 'w':86case 'W':87return number + '週';88default:89return number;90}91},92relativeTime: {93future: '%s後',94past: '%s前',95s: '幾秒',96ss: '%d 秒',97m: '1 分鐘',98mm: '%d 分鐘',99h: '1 小時',100hh: '%d 小時',101d: '1 天',102dd: '%d 天',103M: '1 個月',104MM: '%d 個月',105y: '1 年',106yy: '%d 年',107},108});109
110return zhHk;111
112})));113