1 ;(function (global
, factory
) {
2 typeof exports
=== 'object' && typeof module
!== 'undefined' ? module
.exports
= factory() :
3 typeof define
=== 'function' && define
.amd
? define(factory
) :
4 global
.moment
= factory()
5 }(this, (function () { 'use strict';
10 return hookCallback
.apply(null, arguments
);
13 // This is done to register the method called with moment()
14 // without creating circular dependencies.
15 function setHookCallback (callback
) {
16 hookCallback
= callback
;
19 function isArray(input
) {
20 return input
instanceof Array
|| Object
.prototype.toString
.call(input
) === '[object Array]';
23 function isObject(input
) {
24 // IE8 will treat undefined and null as object if it wasn't for
26 return input
!= null && Object
.prototype.toString
.call(input
) === '[object Object]';
29 function isObjectEmpty(obj
) {
32 // even if its not own property I'd still call it non-empty
38 function isNumber(input
) {
39 return typeof input
=== 'number' || Object
.prototype.toString
.call(input
) === '[object Number]';
42 function isDate(input
) {
43 return input
instanceof Date
|| Object
.prototype.toString
.call(input
) === '[object Date]';
46 function map(arr
, fn
) {
48 for (i
= 0; i
< arr
.length
; ++i
) {
49 res
.push(fn(arr
[i
], i
));
54 function hasOwnProp(a
, b
) {
55 return Object
.prototype.hasOwnProperty
.call(a
, b
);
58 function extend(a
, b
) {
60 if (hasOwnProp(b
, i
)) {
65 if (hasOwnProp(b
, 'toString')) {
66 a
.toString
= b
.toString
;
69 if (hasOwnProp(b
, 'valueOf')) {
70 a
.valueOf
= b
.valueOf
;
76 function createUTC (input
, format
, locale
, strict
) {
77 return createLocalOrUTC(input
, format
, locale
, strict
, true).utc();
80 function defaultParsingFlags() {
81 // We need to deep clone this object.
90 invalidFormat
: false,
91 userInvalidated
: false,
98 function getParsingFlags(m
) {
100 m
._pf
= defaultParsingFlags();
106 if (Array
.prototype.some
) {
107 some
= Array
.prototype.some
;
109 some = function (fun
) {
110 var t
= Object(this);
111 var len
= t
.length
>>> 0;
113 for (var i
= 0; i
< len
; i
++) {
114 if (i
in t
&& fun
.call(this, t
[i
], i
, t
)) {
125 function isValid(m
) {
126 if (m
._isValid
== null) {
127 var flags
= getParsingFlags(m
);
128 var parsedParts
= some
$1.call(flags
.parsedDateParts
, function (i
) {
131 var isNowValid
= !isNaN(m
._d
.getTime()) &&
132 flags
.overflow
< 0 &&
134 !flags
.invalidMonth
&&
135 !flags
.invalidWeekday
&&
137 !flags
.invalidFormat
&&
138 !flags
.userInvalidated
&&
139 (!flags
.meridiem
|| (flags
.meridiem
&& parsedParts
));
142 isNowValid
= isNowValid
&&
143 flags
.charsLeftOver
=== 0 &&
144 flags
.unusedTokens
.length
=== 0 &&
145 flags
.bigHour
=== undefined;
148 if (Object
.isFrozen
== null || !Object
.isFrozen(m
)) {
149 m
._isValid
= isNowValid
;
158 function createInvalid (flags
) {
159 var m
= createUTC(NaN
);
161 extend(getParsingFlags(m
), flags
);
164 getParsingFlags(m
).userInvalidated
= true;
170 function isUndefined(input
) {
171 return input
=== void 0;
174 // Plugins that add properties should also add the key here (null value),
175 // so we can properly clone ourselves.
176 var momentProperties
= hooks
.momentProperties
= [];
178 function copyConfig(to
, from) {
181 if (!isUndefined(from._isAMomentObject
)) {
182 to
._isAMomentObject
= from._isAMomentObject
;
184 if (!isUndefined(from._i
)) {
187 if (!isUndefined(from._f
)) {
190 if (!isUndefined(from._l
)) {
193 if (!isUndefined(from._strict
)) {
194 to
._strict
= from._strict
;
196 if (!isUndefined(from._tzm
)) {
199 if (!isUndefined(from._isUTC
)) {
200 to
._isUTC
= from._isUTC
;
202 if (!isUndefined(from._offset
)) {
203 to
._offset
= from._offset
;
205 if (!isUndefined(from._pf
)) {
206 to
._pf
= getParsingFlags(from);
208 if (!isUndefined(from._locale
)) {
209 to
._locale
= from._locale
;
212 if (momentProperties
.length
> 0) {
213 for (i
in momentProperties
) {
214 prop
= momentProperties
[i
];
216 if (!isUndefined(val
)) {
225 var updateInProgress
= false;
227 // Moment prototype object
228 function Moment(config
) {
229 copyConfig(this, config
);
230 this._d
= new Date(config
._d
!= null ? config
._d
.getTime() : NaN
);
231 if (!this.isValid()) {
232 this._d
= new Date(NaN
);
234 // Prevent infinite loop in case updateOffset creates new moment
236 if (updateInProgress
=== false) {
237 updateInProgress
= true;
238 hooks
.updateOffset(this);
239 updateInProgress
= false;
243 function isMoment (obj
) {
244 return obj
instanceof Moment
|| (obj
!= null && obj
._isAMomentObject
!= null);
247 function absFloor (number
) {
250 return Math
.ceil(number
) || 0;
252 return Math
.floor(number
);
256 function toInt(argumentForCoercion
) {
257 var coercedNumber
= +argumentForCoercion
,
260 if (coercedNumber
!== 0 && isFinite(coercedNumber
)) {
261 value
= absFloor(coercedNumber
);
267 // compare two arrays, return the number of differences
268 function compareArrays(array1
, array2
, dontConvert
) {
269 var len
= Math
.min(array1
.length
, array2
.length
),
270 lengthDiff
= Math
.abs(array1
.length
- array2
.length
),
273 for (i
= 0; i
< len
; i
++) {
274 if ((dontConvert
&& array1
[i
] !== array2
[i
]) ||
275 (!dontConvert
&& toInt(array1
[i
]) !== toInt(array2
[i
]))) {
279 return diffs
+ lengthDiff
;
283 if (hooks
.suppressDeprecationWarnings
=== false &&
284 (typeof console
!== 'undefined') && console
.warn
) {
285 console
.warn('Deprecation warning: ' + msg
);
289 function deprecate(msg
, fn
) {
290 var firstTime
= true;
292 return extend(function () {
293 if (hooks
.deprecationHandler
!= null) {
294 hooks
.deprecationHandler(null, msg
);
299 for (var i
= 0; i
< arguments
.length
; i
++) {
301 if (typeof arguments
[i
] === 'object') {
302 arg
+= '\n[' + i
+ '] ';
303 for (var key
in arguments
[0]) {
304 arg
+= key
+ ': ' + arguments
[0][key
] + ', ';
306 arg
= arg
.slice(0, -2); // Remove trailing comma and space
312 warn(msg
+ '\nArguments: ' + Array
.prototype.slice
.call(args
).join('') + '\n' + (new Error()).stack
);
315 return fn
.apply(this, arguments
);
319 var deprecations
= {};
321 function deprecateSimple(name
, msg
) {
322 if (hooks
.deprecationHandler
!= null) {
323 hooks
.deprecationHandler(name
, msg
);
325 if (!deprecations
[name
]) {
327 deprecations
[name
] = true;
331 hooks
.suppressDeprecationWarnings
= false;
332 hooks
.deprecationHandler
= null;
334 function isFunction(input
) {
335 return input
instanceof Function
|| Object
.prototype.toString
.call(input
) === '[object Function]';
338 function set (config
) {
342 if (isFunction(prop
)) {
345 this['_' + i
] = prop
;
348 this._config
= config
;
349 // Lenient ordinal parsing accepts just a number in addition to
350 // number + (possibly) stuff coming from _ordinalParseLenient.
351 this._ordinalParseLenient
= new RegExp(this._ordinalParse
.source
+ '|' + (/\d{1,2}/).source
);
354 function mergeConfigs(parentConfig
, childConfig
) {
355 var res
= extend({}, parentConfig
), prop
;
356 for (prop
in childConfig
) {
357 if (hasOwnProp(childConfig
, prop
)) {
358 if (isObject(parentConfig
[prop
]) && isObject(childConfig
[prop
])) {
360 extend(res
[prop
], parentConfig
[prop
]);
361 extend(res
[prop
], childConfig
[prop
]);
362 } else if (childConfig
[prop
] != null) {
363 res
[prop
] = childConfig
[prop
];
369 for (prop
in parentConfig
) {
370 if (hasOwnProp(parentConfig
, prop
) &&
371 !hasOwnProp(childConfig
, prop
) &&
372 isObject(parentConfig
[prop
])) {
373 // make sure changes to properties don't modify parent config
374 res
[prop
] = extend({}, res
[prop
]);
380 function Locale(config
) {
381 if (config
!= null) {
391 keys = function (obj
) {
394 if (hasOwnProp(obj
, i
)) {
404 var defaultCalendar
= {
405 sameDay
: '[Today at] LT',
406 nextDay
: '[Tomorrow at] LT',
407 nextWeek
: 'dddd [at] LT',
408 lastDay
: '[Yesterday at] LT',
409 lastWeek
: '[Last] dddd [at] LT',
413 function calendar (key
, mom
, now
) {
414 var output
= this._calendar
[key
] || this._calendar
['sameElse'];
415 return isFunction(output
) ? output
.call(mom
, now
) : output
;
418 var defaultLongDateFormat
= {
423 LLL
: 'MMMM D, YYYY h:mm A',
424 LLLL
: 'dddd, MMMM D, YYYY h:mm A'
427 function longDateFormat (key
) {
428 var format
= this._longDateFormat
[key
],
429 formatUpper
= this._longDateFormat
[key
.toUpperCase()];
431 if (format
|| !formatUpper
) {
435 this._longDateFormat
[key
] = formatUpper
.replace(/MMMM|MM|DD|dddd/g, function (val
) {
439 return this._longDateFormat
[key
];
442 var defaultInvalidDate
= 'Invalid date';
444 function invalidDate () {
445 return this._invalidDate
;
448 var defaultOrdinal
= '%d';
449 var defaultOrdinalParse
= /\d{1,2}/;
451 function ordinal (number
) {
452 return this._ordinal
.replace('%d', number
);
455 var defaultRelativeTime
= {
471 function relativeTime (number
, withoutSuffix
, string
, isFuture
) {
472 var output
= this._relativeTime
[string
];
473 return (isFunction(output
)) ?
474 output(number
, withoutSuffix
, string
, isFuture
) :
475 output
.replace(/%d/i, number
);
478 function pastFuture (diff
, output
) {
479 var format
= this._relativeTime
[diff
> 0 ? 'future' : 'past'];
480 return isFunction(format
) ? format(output
) : format
.replace(/%s/i, output
);
485 function addUnitAlias (unit
, shorthand
) {
486 var lowerCase
= unit
.toLowerCase();
487 aliases
[lowerCase
] = aliases
[lowerCase
+ 's'] = aliases
[shorthand
] = unit
;
490 function normalizeUnits(units
) {
491 return typeof units
=== 'string' ? aliases
[units
] || aliases
[units
.toLowerCase()] : undefined;
494 function normalizeObjectUnits(inputObject
) {
495 var normalizedInput
= {},
499 for (prop
in inputObject
) {
500 if (hasOwnProp(inputObject
, prop
)) {
501 normalizedProp
= normalizeUnits(prop
);
502 if (normalizedProp
) {
503 normalizedInput
[normalizedProp
] = inputObject
[prop
];
508 return normalizedInput
;
513 function addUnitPriority(unit
, priority
) {
514 priorities
[unit
] = priority
;
517 function getPrioritizedUnits(unitsObj
) {
519 for (var u
in unitsObj
) {
520 units
.push({unit
: u
, priority
: priorities
[u
]});
522 units
.sort(function (a
, b
) {
523 return a
.priority
- b
.priority
;
528 function makeGetSet (unit
, keepTime
) {
529 return function (value
) {
531 set$1(this, unit
, value
);
532 hooks
.updateOffset(this, keepTime
);
535 return get(this, unit
);
540 function get (mom
, unit
) {
541 return mom
.isValid() ?
542 mom
._d
['get' + (mom
._isUTC
? 'UTC' : '') + unit
]() : NaN
;
545 function set$1 (mom
, unit
, value
) {
547 mom
._d
['set' + (mom
._isUTC
? 'UTC' : '') + unit
](value
);
553 function stringGet (units
) {
554 units
= normalizeUnits(units
);
555 if (isFunction(this[units
])) {
556 return this[units
]();
562 function stringSet (units
, value
) {
563 if (typeof units
=== 'object') {
564 units
= normalizeObjectUnits(units
);
565 var prioritized
= getPrioritizedUnits(units
);
566 for (var i
= 0; i
< prioritized
.length
; i
++) {
567 this[prioritized
[i
].unit
](units
[prioritized
[i
].unit
]);
570 units
= normalizeUnits(units
);
571 if (isFunction(this[units
])) {
572 return this[units
](value
);
578 function zeroFill(number
, targetLength
, forceSign
) {
579 var absNumber
= '' + Math
.abs(number
),
580 zerosToFill
= targetLength
- absNumber
.length
,
582 return (sign
? (forceSign
? '+' : '') : '-') +
583 Math
.pow(10, Math
.max(0, zerosToFill
)).toString().substr(1) + absNumber
;
586 var formattingTokens
= /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;
588 var localFormattingTokens
= /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
590 var formatFunctions
= {};
592 var formatTokenFunctions
= {};
597 // callback: function () { this.month() + 1 }
598 function addFormatToken (token
, padded
, ordinal
, callback
) {
600 if (typeof callback
=== 'string') {
602 return this[callback
]();
606 formatTokenFunctions
[token
] = func
;
609 formatTokenFunctions
[padded
[0]] = function () {
610 return zeroFill(func
.apply(this, arguments
), padded
[1], padded
[2]);
614 formatTokenFunctions
[ordinal
] = function () {
615 return this.localeData().ordinal(func
.apply(this, arguments
), token
);
620 function removeFormattingTokens(input
) {
621 if (input
.match(/\[[\s\S]/)) {
622 return input
.replace(/^\[|\]$/g, '');
624 return input
.replace(/\\/g
, '');
627 function makeFormatFunction(format
) {
628 var array
= format
.match(formattingTokens
), i
, length
;
630 for (i
= 0, length
= array
.length
; i
< length
; i
++) {
631 if (formatTokenFunctions
[array
[i
]]) {
632 array
[i
] = formatTokenFunctions
[array
[i
]];
634 array
[i
] = removeFormattingTokens(array
[i
]);
638 return function (mom
) {
640 for (i
= 0; i
< length
; i
++) {
641 output
+= array
[i
] instanceof Function
? array
[i
].call(mom
, format
) : array
[i
];
647 // format date using native date object
648 function formatMoment(m
, format
) {
650 return m
.localeData().invalidDate();
653 format
= expandFormat(format
, m
.localeData());
654 formatFunctions
[format
] = formatFunctions
[format
] || makeFormatFunction(format
);
656 return formatFunctions
[format
](m
);
659 function expandFormat(format
, locale
) {
662 function replaceLongDateFormatTokens(input
) {
663 return locale
.longDateFormat(input
) || input
;
666 localFormattingTokens
.lastIndex
= 0;
667 while (i
>= 0 && localFormattingTokens
.test(format
)) {
668 format
= format
.replace(localFormattingTokens
, replaceLongDateFormatTokens
);
669 localFormattingTokens
.lastIndex
= 0;
676 var match1
= /\d/; // 0 - 9
677 var match2
= /\d\d/; // 00 - 99
678 var match3
= /\d{3}/; // 000 - 999
679 var match4
= /\d{4}/; // 0000 - 9999
680 var match6
= /[+-]?\d{6}/; // -999999 - 999999
681 var match1to2
= /\d\d?/; // 0 - 99
682 var match3to4
= /\d\d\d\d?/; // 999 - 9999
683 var match5to6
= /\d\d\d\d\d\d?/; // 99999 - 999999
684 var match1to3
= /\d{1,3}/; // 0 - 999
685 var match1to4
= /\d{1,4}/; // 0 - 9999
686 var match1to6
= /[+-]?\d{1,6}/; // -999999 - 999999
688 var matchUnsigned
= /\d+/; // 0 - inf
689 var matchSigned
= /[+-]?\d+/; // -inf - inf
691 var matchOffset
= /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z
692 var matchShortOffset
= /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z
694 var matchTimestamp
= /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
696 // any word (or two) characters or numbers including two/three word month in arabic.
697 // includes scottish gaelic two word and hyphenated months
698 var matchWord
= /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i;
703 function addRegexToken (token
, regex
, strictRegex
) {
704 regexes
[token
] = isFunction(regex
) ? regex : function (isStrict
, localeData
) {
705 return (isStrict
&& strictRegex
) ? strictRegex
: regex
;
709 function getParseRegexForToken (token
, config
) {
710 if (!hasOwnProp(regexes
, token
)) {
711 return new RegExp(unescapeFormat(token
));
714 return regexes
[token
](config
._strict
, config
._locale
);
717 // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
718 function unescapeFormat(s
) {
719 return regexEscape(s
.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched
, p1
, p2
, p3
, p4
) {
720 return p1
|| p2
|| p3
|| p4
;
724 function regexEscape(s
) {
725 return s
.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
730 function addParseToken (token
, callback
) {
731 var i
, func
= callback
;
732 if (typeof token
=== 'string') {
735 if (isNumber(callback
)) {
736 func = function (input
, array
) {
737 array
[callback
] = toInt(input
);
740 for (i
= 0; i
< token
.length
; i
++) {
741 tokens
[token
[i
]] = func
;
745 function addWeekParseToken (token
, callback
) {
746 addParseToken(token
, function (input
, array
, config
, token
) {
747 config
._w
= config
._w
|| {};
748 callback(input
, config
._w
, config
, token
);
752 function addTimeToArrayFromToken(token
, input
, config
) {
753 if (input
!= null && hasOwnProp(tokens
, token
)) {
754 tokens
[token
](input
, config
._a
, config
, token
);
770 if (Array
.prototype.indexOf
) {
771 indexOf
= Array
.prototype.indexOf
;
773 indexOf = function (o
) {
776 for (i
= 0; i
< this.length
; ++i
) {
785 var indexOf
$1 = indexOf
;
787 function daysInMonth(year
, month
) {
788 return new Date(Date
.UTC(year
, month
+ 1, 0)).getUTCDate();
793 addFormatToken('M', ['MM', 2], 'Mo', function () {
794 return this.month() + 1;
797 addFormatToken('MMM', 0, 0, function (format
) {
798 return this.localeData().monthsShort(this, format
);
801 addFormatToken('MMMM', 0, 0, function (format
) {
802 return this.localeData().months(this, format
);
807 addUnitAlias('month', 'M');
811 addUnitPriority('month', 8);
815 addRegexToken('M', match1to2
);
816 addRegexToken('MM', match1to2
, match2
);
817 addRegexToken('MMM', function (isStrict
, locale
) {
818 return locale
.monthsShortRegex(isStrict
);
820 addRegexToken('MMMM', function (isStrict
, locale
) {
821 return locale
.monthsRegex(isStrict
);
824 addParseToken(['M', 'MM'], function (input
, array
) {
825 array
[MONTH
] = toInt(input
) - 1;
828 addParseToken(['MMM', 'MMMM'], function (input
, array
, config
, token
) {
829 var month
= config
._locale
.monthsParse(input
, token
, config
._strict
);
830 // if we didn't find a month name, mark the date as invalid.
832 array
[MONTH
] = month
;
834 getParsingFlags(config
).invalidMonth
= input
;
840 var MONTHS_IN_FORMAT
= /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;
841 var defaultLocaleMonths
= 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');
842 function localeMonths (m
, format
) {
846 return isArray(this._months
) ? this._months
[m
.month()] :
847 this._months
[(this._months
.isFormat
|| MONTHS_IN_FORMAT
).test(format
) ? 'format' : 'standalone'][m
.month()];
850 var defaultLocaleMonthsShort
= 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
851 function localeMonthsShort (m
, format
) {
853 return this._monthsShort
;
855 return isArray(this._monthsShort
) ? this._monthsShort
[m
.month()] :
856 this._monthsShort
[MONTHS_IN_FORMAT
.test(format
) ? 'format' : 'standalone'][m
.month()];
859 function handleStrictParse(monthName
, format
, strict
) {
860 var i
, ii
, mom
, llc
= monthName
.toLocaleLowerCase();
861 if (!this._monthsParse
) {
863 this._monthsParse
= [];
864 this._longMonthsParse
= [];
865 this._shortMonthsParse
= [];
866 for (i
= 0; i
< 12; ++i
) {
867 mom
= createUTC([2000, i
]);
868 this._shortMonthsParse
[i
] = this.monthsShort(mom
, '').toLocaleLowerCase();
869 this._longMonthsParse
[i
] = this.months(mom
, '').toLocaleLowerCase();
874 if (format
=== 'MMM') {
875 ii
= indexOf
$1.call(this._shortMonthsParse
, llc
);
876 return ii
!== -1 ? ii
: null;
878 ii
= indexOf
$1.call(this._longMonthsParse
, llc
);
879 return ii
!== -1 ? ii
: null;
882 if (format
=== 'MMM') {
883 ii
= indexOf
$1.call(this._shortMonthsParse
, llc
);
887 ii
= indexOf
$1.call(this._longMonthsParse
, llc
);
888 return ii
!== -1 ? ii
: null;
890 ii
= indexOf
$1.call(this._longMonthsParse
, llc
);
894 ii
= indexOf
$1.call(this._shortMonthsParse
, llc
);
895 return ii
!== -1 ? ii
: null;
900 function localeMonthsParse (monthName
, format
, strict
) {
903 if (this._monthsParseExact
) {
904 return handleStrictParse
.call(this, monthName
, format
, strict
);
907 if (!this._monthsParse
) {
908 this._monthsParse
= [];
909 this._longMonthsParse
= [];
910 this._shortMonthsParse
= [];
914 // Sorting makes sure if one month (or abbr) is a prefix of another
915 // see sorting in computeMonthsParse
916 for (i
= 0; i
< 12; i
++) {
917 // make the regex if we don't have it already
918 mom
= createUTC([2000, i
]);
919 if (strict
&& !this._longMonthsParse
[i
]) {
920 this._longMonthsParse
[i
] = new RegExp('^' + this.months(mom
, '').replace('.', '') + '$', 'i');
921 this._shortMonthsParse
[i
] = new RegExp('^' + this.monthsShort(mom
, '').replace('.', '') + '$', 'i');
923 if (!strict
&& !this._monthsParse
[i
]) {
924 regex
= '^' + this.months(mom
, '') + '|^' + this.monthsShort(mom
, '');
925 this._monthsParse
[i
] = new RegExp(regex
.replace('.', ''), 'i');
928 if (strict
&& format
=== 'MMMM' && this._longMonthsParse
[i
].test(monthName
)) {
930 } else if (strict
&& format
=== 'MMM' && this._shortMonthsParse
[i
].test(monthName
)) {
932 } else if (!strict
&& this._monthsParse
[i
].test(monthName
)) {
940 function setMonth (mom
, value
) {
943 if (!mom
.isValid()) {
948 if (typeof value
=== 'string') {
949 if (/^\d+$/.test(value
)) {
950 value
= toInt(value
);
952 value
= mom
.localeData().monthsParse(value
);
953 // TODO: Another silent failure?
954 if (!isNumber(value
)) {
960 dayOfMonth
= Math
.min(mom
.date(), daysInMonth(mom
.year(), value
));
961 mom
._d
['set' + (mom
._isUTC
? 'UTC' : '') + 'Month'](value
, dayOfMonth
);
965 function getSetMonth (value
) {
967 setMonth(this, value
);
968 hooks
.updateOffset(this, true);
971 return get(this, 'Month');
975 function getDaysInMonth () {
976 return daysInMonth(this.year(), this.month());
979 var defaultMonthsShortRegex
= matchWord
;
980 function monthsShortRegex (isStrict
) {
981 if (this._monthsParseExact
) {
982 if (!hasOwnProp(this, '_monthsRegex')) {
983 computeMonthsParse
.call(this);
986 return this._monthsShortStrictRegex
;
988 return this._monthsShortRegex
;
991 if (!hasOwnProp(this, '_monthsShortRegex')) {
992 this._monthsShortRegex
= defaultMonthsShortRegex
;
994 return this._monthsShortStrictRegex
&& isStrict
?
995 this._monthsShortStrictRegex
: this._monthsShortRegex
;
999 var defaultMonthsRegex
= matchWord
;
1000 function monthsRegex (isStrict
) {
1001 if (this._monthsParseExact
) {
1002 if (!hasOwnProp(this, '_monthsRegex')) {
1003 computeMonthsParse
.call(this);
1006 return this._monthsStrictRegex
;
1008 return this._monthsRegex
;
1011 if (!hasOwnProp(this, '_monthsRegex')) {
1012 this._monthsRegex
= defaultMonthsRegex
;
1014 return this._monthsStrictRegex
&& isStrict
?
1015 this._monthsStrictRegex
: this._monthsRegex
;
1019 function computeMonthsParse () {
1020 function cmpLenRev(a
, b
) {
1021 return b
.length
- a
.length
;
1024 var shortPieces
= [], longPieces
= [], mixedPieces
= [],
1026 for (i
= 0; i
< 12; i
++) {
1027 // make the regex if we don't have it already
1028 mom
= createUTC([2000, i
]);
1029 shortPieces
.push(this.monthsShort(mom
, ''));
1030 longPieces
.push(this.months(mom
, ''));
1031 mixedPieces
.push(this.months(mom
, ''));
1032 mixedPieces
.push(this.monthsShort(mom
, ''));
1034 // Sorting makes sure if one month (or abbr) is a prefix of another it
1035 // will match the longer piece.
1036 shortPieces
.sort(cmpLenRev
);
1037 longPieces
.sort(cmpLenRev
);
1038 mixedPieces
.sort(cmpLenRev
);
1039 for (i
= 0; i
< 12; i
++) {
1040 shortPieces
[i
] = regexEscape(shortPieces
[i
]);
1041 longPieces
[i
] = regexEscape(longPieces
[i
]);
1043 for (i
= 0; i
< 24; i
++) {
1044 mixedPieces
[i
] = regexEscape(mixedPieces
[i
]);
1047 this._monthsRegex
= new RegExp('^(' + mixedPieces
.join('|') + ')', 'i');
1048 this._monthsShortRegex
= this._monthsRegex
;
1049 this._monthsStrictRegex
= new RegExp('^(' + longPieces
.join('|') + ')', 'i');
1050 this._monthsShortStrictRegex
= new RegExp('^(' + shortPieces
.join('|') + ')', 'i');
1055 addFormatToken('Y', 0, 0, function () {
1056 var y
= this.year();
1057 return y
<= 9999 ? '' + y
: '+' + y
;
1060 addFormatToken(0, ['YY', 2], 0, function () {
1061 return this.year() % 100;
1064 addFormatToken(0, ['YYYY', 4], 0, 'year');
1065 addFormatToken(0, ['YYYYY', 5], 0, 'year');
1066 addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
1070 addUnitAlias('year', 'y');
1074 addUnitPriority('year', 1);
1078 addRegexToken('Y', matchSigned
);
1079 addRegexToken('YY', match1to2
, match2
);
1080 addRegexToken('YYYY', match1to4
, match4
);
1081 addRegexToken('YYYYY', match1to6
, match6
);
1082 addRegexToken('YYYYYY', match1to6
, match6
);
1084 addParseToken(['YYYYY', 'YYYYYY'], YEAR
);
1085 addParseToken('YYYY', function (input
, array
) {
1086 array
[YEAR
] = input
.length
=== 2 ? hooks
.parseTwoDigitYear(input
) : toInt(input
);
1088 addParseToken('YY', function (input
, array
) {
1089 array
[YEAR
] = hooks
.parseTwoDigitYear(input
);
1091 addParseToken('Y', function (input
, array
) {
1092 array
[YEAR
] = parseInt(input
, 10);
1097 function daysInYear(year
) {
1098 return isLeapYear(year
) ? 366 : 365;
1101 function isLeapYear(year
) {
1102 return (year
% 4 === 0 && year
% 100 !== 0) || year
% 400 === 0;
1107 hooks
.parseTwoDigitYear = function (input
) {
1108 return toInt(input
) + (toInt(input
) > 68 ? 1900 : 2000);
1113 var getSetYear
= makeGetSet('FullYear', true);
1115 function getIsLeapYear () {
1116 return isLeapYear(this.year());
1119 function createDate (y
, m
, d
, h
, M
, s
, ms
) {
1120 //can't just apply() to create a date:
1121 //http://stackoverflow.com/questions/181348/instantiating-a-javascript-object-by-calling-prototype-constructor-apply
1122 var date
= new Date(y
, m
, d
, h
, M
, s
, ms
);
1124 //the date constructor remaps years 0-99 to 1900-1999
1125 if (y
< 100 && y
>= 0 && isFinite(date
.getFullYear())) {
1126 date
.setFullYear(y
);
1131 function createUTCDate (y
) {
1132 var date
= new Date(Date
.UTC
.apply(null, arguments
));
1134 //the Date.UTC function remaps years 0-99 to 1900-1999
1135 if (y
< 100 && y
>= 0 && isFinite(date
.getUTCFullYear())) {
1136 date
.setUTCFullYear(y
);
1141 // start-of-first-week - start-of-year
1142 function firstWeekOffset(year
, dow
, doy
) {
1143 var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
1144 fwd
= 7 + dow
- doy
,
1145 // first-week day local weekday -- which local weekday is fwd
1146 fwdlw
= (7 + createUTCDate(year
, 0, fwd
).getUTCDay() - dow
) % 7;
1148 return -fwdlw
+ fwd
- 1;
1151 //http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
1152 function dayOfYearFromWeeks(year
, week
, weekday
, dow
, doy
) {
1153 var localWeekday
= (7 + weekday
- dow
) % 7,
1154 weekOffset
= firstWeekOffset(year
, dow
, doy
),
1155 dayOfYear
= 1 + 7 * (week
- 1) + localWeekday
+ weekOffset
,
1156 resYear
, resDayOfYear
;
1158 if (dayOfYear
<= 0) {
1160 resDayOfYear
= daysInYear(resYear
) + dayOfYear
;
1161 } else if (dayOfYear
> daysInYear(year
)) {
1163 resDayOfYear
= dayOfYear
- daysInYear(year
);
1166 resDayOfYear
= dayOfYear
;
1171 dayOfYear
: resDayOfYear
1175 function weekOfYear(mom
, dow
, doy
) {
1176 var weekOffset
= firstWeekOffset(mom
.year(), dow
, doy
),
1177 week
= Math
.floor((mom
.dayOfYear() - weekOffset
- 1) / 7) + 1,
1181 resYear
= mom
.year() - 1;
1182 resWeek
= week
+ weeksInYear(resYear
, dow
, doy
);
1183 } else if (week
> weeksInYear(mom
.year(), dow
, doy
)) {
1184 resWeek
= week
- weeksInYear(mom
.year(), dow
, doy
);
1185 resYear
= mom
.year() + 1;
1187 resYear
= mom
.year();
1197 function weeksInYear(year
, dow
, doy
) {
1198 var weekOffset
= firstWeekOffset(year
, dow
, doy
),
1199 weekOffsetNext
= firstWeekOffset(year
+ 1, dow
, doy
);
1200 return (daysInYear(year
) - weekOffset
+ weekOffsetNext
) / 7;
1205 addFormatToken('w', ['ww', 2], 'wo', 'week');
1206 addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
1210 addUnitAlias('week', 'w');
1211 addUnitAlias('isoWeek', 'W');
1215 addUnitPriority('week', 5);
1216 addUnitPriority('isoWeek', 5);
1220 addRegexToken('w', match1to2
);
1221 addRegexToken('ww', match1to2
, match2
);
1222 addRegexToken('W', match1to2
);
1223 addRegexToken('WW', match1to2
, match2
);
1225 addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input
, week
, config
, token
) {
1226 week
[token
.substr(0, 1)] = toInt(input
);
1233 function localeWeek (mom
) {
1234 return weekOfYear(mom
, this._week
.dow
, this._week
.doy
).week
;
1237 var defaultLocaleWeek
= {
1238 dow
: 0, // Sunday is the first day of the week.
1239 doy
: 6 // The week that contains Jan 1st is the first week of the year.
1242 function localeFirstDayOfWeek () {
1243 return this._week
.dow
;
1246 function localeFirstDayOfYear () {
1247 return this._week
.doy
;
1252 function getSetWeek (input
) {
1253 var week
= this.localeData().week(this);
1254 return input
== null ? week
: this.add((input
- week
) * 7, 'd');
1257 function getSetISOWeek (input
) {
1258 var week
= weekOfYear(this, 1, 4).week
;
1259 return input
== null ? week
: this.add((input
- week
) * 7, 'd');
1264 addFormatToken('d', 0, 'do', 'day');
1266 addFormatToken('dd', 0, 0, function (format
) {
1267 return this.localeData().weekdaysMin(this, format
);
1270 addFormatToken('ddd', 0, 0, function (format
) {
1271 return this.localeData().weekdaysShort(this, format
);
1274 addFormatToken('dddd', 0, 0, function (format
) {
1275 return this.localeData().weekdays(this, format
);
1278 addFormatToken('e', 0, 0, 'weekday');
1279 addFormatToken('E', 0, 0, 'isoWeekday');
1283 addUnitAlias('day', 'd');
1284 addUnitAlias('weekday', 'e');
1285 addUnitAlias('isoWeekday', 'E');
1288 addUnitPriority('day', 11);
1289 addUnitPriority('weekday', 11);
1290 addUnitPriority('isoWeekday', 11);
1294 addRegexToken('d', match1to2
);
1295 addRegexToken('e', match1to2
);
1296 addRegexToken('E', match1to2
);
1297 addRegexToken('dd', function (isStrict
, locale
) {
1298 return locale
.weekdaysMinRegex(isStrict
);
1300 addRegexToken('ddd', function (isStrict
, locale
) {
1301 return locale
.weekdaysShortRegex(isStrict
);
1303 addRegexToken('dddd', function (isStrict
, locale
) {
1304 return locale
.weekdaysRegex(isStrict
);
1307 addWeekParseToken(['dd', 'ddd', 'dddd'], function (input
, week
, config
, token
) {
1308 var weekday
= config
._locale
.weekdaysParse(input
, token
, config
._strict
);
1309 // if we didn't get a weekday name, mark the date as invalid
1310 if (weekday
!= null) {
1313 getParsingFlags(config
).invalidWeekday
= input
;
1317 addWeekParseToken(['d', 'e', 'E'], function (input
, week
, config
, token
) {
1318 week
[token
] = toInt(input
);
1323 function parseWeekday(input
, locale
) {
1324 if (typeof input
!== 'string') {
1328 if (!isNaN(input
)) {
1329 return parseInt(input
, 10);
1332 input
= locale
.weekdaysParse(input
);
1333 if (typeof input
=== 'number') {
1340 function parseIsoWeekday(input
, locale
) {
1341 if (typeof input
=== 'string') {
1342 return locale
.weekdaysParse(input
) % 7 || 7;
1344 return isNaN(input
) ? null : input
;
1349 var defaultLocaleWeekdays
= 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
1350 function localeWeekdays (m
, format
) {
1352 return this._weekdays
;
1354 return isArray(this._weekdays
) ? this._weekdays
[m
.day()] :
1355 this._weekdays
[this._weekdays
.isFormat
.test(format
) ? 'format' : 'standalone'][m
.day()];
1358 var defaultLocaleWeekdaysShort
= 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
1359 function localeWeekdaysShort (m
) {
1360 return (m
) ? this._weekdaysShort
[m
.day()] : this._weekdaysShort
;
1363 var defaultLocaleWeekdaysMin
= 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
1364 function localeWeekdaysMin (m
) {
1365 return (m
) ? this._weekdaysMin
[m
.day()] : this._weekdaysMin
;
1368 function handleStrictParse
$1(weekdayName
, format
, strict
) {
1369 var i
, ii
, mom
, llc
= weekdayName
.toLocaleLowerCase();
1370 if (!this._weekdaysParse
) {
1371 this._weekdaysParse
= [];
1372 this._shortWeekdaysParse
= [];
1373 this._minWeekdaysParse
= [];
1375 for (i
= 0; i
< 7; ++i
) {
1376 mom
= createUTC([2000, 1]).day(i
);
1377 this._minWeekdaysParse
[i
] = this.weekdaysMin(mom
, '').toLocaleLowerCase();
1378 this._shortWeekdaysParse
[i
] = this.weekdaysShort(mom
, '').toLocaleLowerCase();
1379 this._weekdaysParse
[i
] = this.weekdays(mom
, '').toLocaleLowerCase();
1384 if (format
=== 'dddd') {
1385 ii
= indexOf
$1.call(this._weekdaysParse
, llc
);
1386 return ii
!== -1 ? ii
: null;
1387 } else if (format
=== 'ddd') {
1388 ii
= indexOf
$1.call(this._shortWeekdaysParse
, llc
);
1389 return ii
!== -1 ? ii
: null;
1391 ii
= indexOf
$1.call(this._minWeekdaysParse
, llc
);
1392 return ii
!== -1 ? ii
: null;
1395 if (format
=== 'dddd') {
1396 ii
= indexOf
$1.call(this._weekdaysParse
, llc
);
1400 ii
= indexOf
$1.call(this._shortWeekdaysParse
, llc
);
1404 ii
= indexOf
$1.call(this._minWeekdaysParse
, llc
);
1405 return ii
!== -1 ? ii
: null;
1406 } else if (format
=== 'ddd') {
1407 ii
= indexOf
$1.call(this._shortWeekdaysParse
, llc
);
1411 ii
= indexOf
$1.call(this._weekdaysParse
, llc
);
1415 ii
= indexOf
$1.call(this._minWeekdaysParse
, llc
);
1416 return ii
!== -1 ? ii
: null;
1418 ii
= indexOf
$1.call(this._minWeekdaysParse
, llc
);
1422 ii
= indexOf
$1.call(this._weekdaysParse
, llc
);
1426 ii
= indexOf
$1.call(this._shortWeekdaysParse
, llc
);
1427 return ii
!== -1 ? ii
: null;
1432 function localeWeekdaysParse (weekdayName
, format
, strict
) {
1435 if (this._weekdaysParseExact
) {
1436 return handleStrictParse
$1.call(this, weekdayName
, format
, strict
);
1439 if (!this._weekdaysParse
) {
1440 this._weekdaysParse
= [];
1441 this._minWeekdaysParse
= [];
1442 this._shortWeekdaysParse
= [];
1443 this._fullWeekdaysParse
= [];
1446 for (i
= 0; i
< 7; i
++) {
1447 // make the regex if we don't have it already
1449 mom
= createUTC([2000, 1]).day(i
);
1450 if (strict
&& !this._fullWeekdaysParse
[i
]) {
1451 this._fullWeekdaysParse
[i
] = new RegExp('^' + this.weekdays(mom
, '').replace('.', '\.?') + '$', 'i');
1452 this._shortWeekdaysParse
[i
] = new RegExp('^' + this.weekdaysShort(mom
, '').replace('.', '\.?') + '$', 'i');
1453 this._minWeekdaysParse
[i
] = new RegExp('^' + this.weekdaysMin(mom
, '').replace('.', '\.?') + '$', 'i');
1455 if (!this._weekdaysParse
[i
]) {
1456 regex
= '^' + this.weekdays(mom
, '') + '|^' + this.weekdaysShort(mom
, '') + '|^' + this.weekdaysMin(mom
, '');
1457 this._weekdaysParse
[i
] = new RegExp(regex
.replace('.', ''), 'i');
1460 if (strict
&& format
=== 'dddd' && this._fullWeekdaysParse
[i
].test(weekdayName
)) {
1462 } else if (strict
&& format
=== 'ddd' && this._shortWeekdaysParse
[i
].test(weekdayName
)) {
1464 } else if (strict
&& format
=== 'dd' && this._minWeekdaysParse
[i
].test(weekdayName
)) {
1466 } else if (!strict
&& this._weekdaysParse
[i
].test(weekdayName
)) {
1474 function getSetDayOfWeek (input
) {
1475 if (!this.isValid()) {
1476 return input
!= null ? this : NaN
;
1478 var day
= this._isUTC
? this._d
.getUTCDay() : this._d
.getDay();
1479 if (input
!= null) {
1480 input
= parseWeekday(input
, this.localeData());
1481 return this.add(input
- day
, 'd');
1487 function getSetLocaleDayOfWeek (input
) {
1488 if (!this.isValid()) {
1489 return input
!= null ? this : NaN
;
1491 var weekday
= (this.day() + 7 - this.localeData()._week
.dow
) % 7;
1492 return input
== null ? weekday
: this.add(input
- weekday
, 'd');
1495 function getSetISODayOfWeek (input
) {
1496 if (!this.isValid()) {
1497 return input
!= null ? this : NaN
;
1500 // behaves the same as moment#day except
1501 // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
1502 // as a setter, sunday should belong to the previous week.
1504 if (input
!= null) {
1505 var weekday
= parseIsoWeekday(input
, this.localeData());
1506 return this.day(this.day() % 7 ? weekday
: weekday
- 7);
1508 return this.day() || 7;
1512 var defaultWeekdaysRegex
= matchWord
;
1513 function weekdaysRegex (isStrict
) {
1514 if (this._weekdaysParseExact
) {
1515 if (!hasOwnProp(this, '_weekdaysRegex')) {
1516 computeWeekdaysParse
.call(this);
1519 return this._weekdaysStrictRegex
;
1521 return this._weekdaysRegex
;
1524 if (!hasOwnProp(this, '_weekdaysRegex')) {
1525 this._weekdaysRegex
= defaultWeekdaysRegex
;
1527 return this._weekdaysStrictRegex
&& isStrict
?
1528 this._weekdaysStrictRegex
: this._weekdaysRegex
;
1532 var defaultWeekdaysShortRegex
= matchWord
;
1533 function weekdaysShortRegex (isStrict
) {
1534 if (this._weekdaysParseExact
) {
1535 if (!hasOwnProp(this, '_weekdaysRegex')) {
1536 computeWeekdaysParse
.call(this);
1539 return this._weekdaysShortStrictRegex
;
1541 return this._weekdaysShortRegex
;
1544 if (!hasOwnProp(this, '_weekdaysShortRegex')) {
1545 this._weekdaysShortRegex
= defaultWeekdaysShortRegex
;
1547 return this._weekdaysShortStrictRegex
&& isStrict
?
1548 this._weekdaysShortStrictRegex
: this._weekdaysShortRegex
;
1552 var defaultWeekdaysMinRegex
= matchWord
;
1553 function weekdaysMinRegex (isStrict
) {
1554 if (this._weekdaysParseExact
) {
1555 if (!hasOwnProp(this, '_weekdaysRegex')) {
1556 computeWeekdaysParse
.call(this);
1559 return this._weekdaysMinStrictRegex
;
1561 return this._weekdaysMinRegex
;
1564 if (!hasOwnProp(this, '_weekdaysMinRegex')) {
1565 this._weekdaysMinRegex
= defaultWeekdaysMinRegex
;
1567 return this._weekdaysMinStrictRegex
&& isStrict
?
1568 this._weekdaysMinStrictRegex
: this._weekdaysMinRegex
;
1573 function computeWeekdaysParse () {
1574 function cmpLenRev(a
, b
) {
1575 return b
.length
- a
.length
;
1578 var minPieces
= [], shortPieces
= [], longPieces
= [], mixedPieces
= [],
1579 i
, mom
, minp
, shortp
, longp
;
1580 for (i
= 0; i
< 7; i
++) {
1581 // make the regex if we don't have it already
1582 mom
= createUTC([2000, 1]).day(i
);
1583 minp
= this.weekdaysMin(mom
, '');
1584 shortp
= this.weekdaysShort(mom
, '');
1585 longp
= this.weekdays(mom
, '');
1586 minPieces
.push(minp
);
1587 shortPieces
.push(shortp
);
1588 longPieces
.push(longp
);
1589 mixedPieces
.push(minp
);
1590 mixedPieces
.push(shortp
);
1591 mixedPieces
.push(longp
);
1593 // Sorting makes sure if one weekday (or abbr) is a prefix of another it
1594 // will match the longer piece.
1595 minPieces
.sort(cmpLenRev
);
1596 shortPieces
.sort(cmpLenRev
);
1597 longPieces
.sort(cmpLenRev
);
1598 mixedPieces
.sort(cmpLenRev
);
1599 for (i
= 0; i
< 7; i
++) {
1600 shortPieces
[i
] = regexEscape(shortPieces
[i
]);
1601 longPieces
[i
] = regexEscape(longPieces
[i
]);
1602 mixedPieces
[i
] = regexEscape(mixedPieces
[i
]);
1605 this._weekdaysRegex
= new RegExp('^(' + mixedPieces
.join('|') + ')', 'i');
1606 this._weekdaysShortRegex
= this._weekdaysRegex
;
1607 this._weekdaysMinRegex
= this._weekdaysRegex
;
1609 this._weekdaysStrictRegex
= new RegExp('^(' + longPieces
.join('|') + ')', 'i');
1610 this._weekdaysShortStrictRegex
= new RegExp('^(' + shortPieces
.join('|') + ')', 'i');
1611 this._weekdaysMinStrictRegex
= new RegExp('^(' + minPieces
.join('|') + ')', 'i');
1616 function hFormat() {
1617 return this.hours() % 12 || 12;
1620 function kFormat() {
1621 return this.hours() || 24;
1624 addFormatToken('H', ['HH', 2], 0, 'hour');
1625 addFormatToken('h', ['hh', 2], 0, hFormat
);
1626 addFormatToken('k', ['kk', 2], 0, kFormat
);
1628 addFormatToken('hmm', 0, 0, function () {
1629 return '' + hFormat
.apply(this) + zeroFill(this.minutes(), 2);
1632 addFormatToken('hmmss', 0, 0, function () {
1633 return '' + hFormat
.apply(this) + zeroFill(this.minutes(), 2) +
1634 zeroFill(this.seconds(), 2);
1637 addFormatToken('Hmm', 0, 0, function () {
1638 return '' + this.hours() + zeroFill(this.minutes(), 2);
1641 addFormatToken('Hmmss', 0, 0, function () {
1642 return '' + this.hours() + zeroFill(this.minutes(), 2) +
1643 zeroFill(this.seconds(), 2);
1646 function meridiem (token
, lowercase
) {
1647 addFormatToken(token
, 0, 0, function () {
1648 return this.localeData().meridiem(this.hours(), this.minutes(), lowercase
);
1652 meridiem('a', true);
1653 meridiem('A', false);
1657 addUnitAlias('hour', 'h');
1660 addUnitPriority('hour', 13);
1664 function matchMeridiem (isStrict
, locale
) {
1665 return locale
._meridiemParse
;
1668 addRegexToken('a', matchMeridiem
);
1669 addRegexToken('A', matchMeridiem
);
1670 addRegexToken('H', match1to2
);
1671 addRegexToken('h', match1to2
);
1672 addRegexToken('HH', match1to2
, match2
);
1673 addRegexToken('hh', match1to2
, match2
);
1675 addRegexToken('hmm', match3to4
);
1676 addRegexToken('hmmss', match5to6
);
1677 addRegexToken('Hmm', match3to4
);
1678 addRegexToken('Hmmss', match5to6
);
1680 addParseToken(['H', 'HH'], HOUR
);
1681 addParseToken(['a', 'A'], function (input
, array
, config
) {
1682 config
._isPm
= config
._locale
.isPM(input
);
1683 config
._meridiem
= input
;
1685 addParseToken(['h', 'hh'], function (input
, array
, config
) {
1686 array
[HOUR
] = toInt(input
);
1687 getParsingFlags(config
).bigHour
= true;
1689 addParseToken('hmm', function (input
, array
, config
) {
1690 var pos
= input
.length
- 2;
1691 array
[HOUR
] = toInt(input
.substr(0, pos
));
1692 array
[MINUTE
] = toInt(input
.substr(pos
));
1693 getParsingFlags(config
).bigHour
= true;
1695 addParseToken('hmmss', function (input
, array
, config
) {
1696 var pos1
= input
.length
- 4;
1697 var pos2
= input
.length
- 2;
1698 array
[HOUR
] = toInt(input
.substr(0, pos1
));
1699 array
[MINUTE
] = toInt(input
.substr(pos1
, 2));
1700 array
[SECOND
] = toInt(input
.substr(pos2
));
1701 getParsingFlags(config
).bigHour
= true;
1703 addParseToken('Hmm', function (input
, array
, config
) {
1704 var pos
= input
.length
- 2;
1705 array
[HOUR
] = toInt(input
.substr(0, pos
));
1706 array
[MINUTE
] = toInt(input
.substr(pos
));
1708 addParseToken('Hmmss', function (input
, array
, config
) {
1709 var pos1
= input
.length
- 4;
1710 var pos2
= input
.length
- 2;
1711 array
[HOUR
] = toInt(input
.substr(0, pos1
));
1712 array
[MINUTE
] = toInt(input
.substr(pos1
, 2));
1713 array
[SECOND
] = toInt(input
.substr(pos2
));
1718 function localeIsPM (input
) {
1719 // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
1720 // Using charAt should be more compatible.
1721 return ((input
+ '').toLowerCase().charAt(0) === 'p');
1724 var defaultLocaleMeridiemParse
= /[ap]\.?m?\.?/i;
1725 function localeMeridiem (hours
, minutes
, isLower
) {
1727 return isLower
? 'pm' : 'PM';
1729 return isLower
? 'am' : 'AM';
1736 // Setting the hour should keep the time, because the user explicitly
1737 // specified which hour he wants. So trying to maintain the same hour (in
1738 // a new timezone) makes sense. Adding/subtracting hours does not follow
1740 var getSetHour
= makeGetSet('Hours', true);
1747 calendar
: defaultCalendar
,
1748 longDateFormat
: defaultLongDateFormat
,
1749 invalidDate
: defaultInvalidDate
,
1750 ordinal
: defaultOrdinal
,
1751 ordinalParse
: defaultOrdinalParse
,
1752 relativeTime
: defaultRelativeTime
,
1754 months
: defaultLocaleMonths
,
1755 monthsShort
: defaultLocaleMonthsShort
,
1757 week
: defaultLocaleWeek
,
1759 weekdays
: defaultLocaleWeekdays
,
1760 weekdaysMin
: defaultLocaleWeekdaysMin
,
1761 weekdaysShort
: defaultLocaleWeekdaysShort
,
1763 meridiemParse
: defaultLocaleMeridiemParse
1766 // internal storage for locale config files
1768 var localeFamilies
= {};
1771 function normalizeLocale(key
) {
1772 return key
? key
.toLowerCase().replace('_', '-') : key
;
1775 // pick the locale from the array
1776 // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
1777 // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
1778 function chooseLocale(names
) {
1779 var i
= 0, j
, next
, locale
, split
;
1781 while (i
< names
.length
) {
1782 split
= normalizeLocale(names
[i
]).split('-');
1784 next
= normalizeLocale(names
[i
+ 1]);
1785 next
= next
? next
.split('-') : null;
1787 locale
= loadLocale(split
.slice(0, j
).join('-'));
1791 if (next
&& next
.length
>= j
&& compareArrays(split
, next
, true) >= j
- 1) {
1792 //the next array item is better than a shallower substring of this one
1802 function loadLocale(name
) {
1803 var oldLocale
= null;
1804 // TODO: Find a better way to register and load all the locales in Node
1805 if (!locales
[name
] && (typeof module
!== 'undefined') &&
1806 module
&& module
.exports
) {
1808 oldLocale
= globalLocale
._abbr
;
1809 require('./locale/' + name
);
1810 // because defineLocale currently also sets the global locale, we
1811 // want to undo that for lazy loaded locales
1812 getSetGlobalLocale(oldLocale
);
1815 return locales
[name
];
1818 // This function will load locale and then set the global locale. If
1819 // no arguments are passed in, it will simply return the current global
1821 function getSetGlobalLocale (key
, values
) {
1824 if (isUndefined(values
)) {
1825 data
= getLocale(key
);
1828 data
= defineLocale(key
, values
);
1832 // moment.duration._locale = moment._locale = data;
1833 globalLocale
= data
;
1837 return globalLocale
._abbr
;
1840 function defineLocale (name
, config
) {
1841 if (config
!== null) {
1842 var parentConfig
= baseConfig
;
1844 if (locales
[name
] != null) {
1845 deprecateSimple('defineLocaleOverride',
1846 'use moment.updateLocale(localeName, config) to change ' +
1847 'an existing locale. moment.defineLocale(localeName, ' +
1848 'config) should only be used for creating a new locale ' +
1849 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
1850 parentConfig
= locales
[name
]._config
;
1851 } else if (config
.parentLocale
!= null) {
1852 if (locales
[config
.parentLocale
] != null) {
1853 parentConfig
= locales
[config
.parentLocale
]._config
;
1855 if (!localeFamilies
[config
.parentLocale
]) {
1856 localeFamilies
[config
.parentLocale
] = [];
1858 localeFamilies
[config
.parentLocale
].push({
1865 locales
[name
] = new Locale(mergeConfigs(parentConfig
, config
));
1867 if (localeFamilies
[name
]) {
1868 localeFamilies
[name
].forEach(function (x
) {
1869 defineLocale(x
.name
, x
.config
);
1873 // backwards compat for now: also set the locale
1874 // make sure we set the locale AFTER all child locales have been
1875 // created, so we won't end up with the child locale set.
1876 getSetGlobalLocale(name
);
1879 return locales
[name
];
1881 // useful for testing
1882 delete locales
[name
];
1887 function updateLocale(name
, config
) {
1888 if (config
!= null) {
1889 var locale
, parentConfig
= baseConfig
;
1891 if (locales
[name
] != null) {
1892 parentConfig
= locales
[name
]._config
;
1894 config
= mergeConfigs(parentConfig
, config
);
1895 locale
= new Locale(config
);
1896 locale
.parentLocale
= locales
[name
];
1897 locales
[name
] = locale
;
1899 // backwards compat for now: also set the locale
1900 getSetGlobalLocale(name
);
1902 // pass null for config to unupdate, useful for tests
1903 if (locales
[name
] != null) {
1904 if (locales
[name
].parentLocale
!= null) {
1905 locales
[name
] = locales
[name
].parentLocale
;
1906 } else if (locales
[name
] != null) {
1907 delete locales
[name
];
1911 return locales
[name
];
1914 // returns locale data
1915 function getLocale (key
) {
1918 if (key
&& key
._locale
&& key
._locale
._abbr
) {
1919 key
= key
._locale
._abbr
;
1923 return globalLocale
;
1926 if (!isArray(key
)) {
1927 //short-circuit everything else
1928 locale
= loadLocale(key
);
1935 return chooseLocale(key
);
1938 function listLocales() {
1939 return keys
$1(locales
);
1942 function checkOverflow (m
) {
1946 if (a
&& getParsingFlags(m
).overflow
=== -2) {
1948 a
[MONTH
] < 0 || a
[MONTH
] > 11 ? MONTH
:
1949 a
[DATE
] < 1 || a
[DATE
] > daysInMonth(a
[YEAR
], a
[MONTH
]) ? DATE
:
1950 a
[HOUR
] < 0 || a
[HOUR
] > 24 || (a
[HOUR
] === 24 && (a
[MINUTE
] !== 0 || a
[SECOND
] !== 0 || a
[MILLISECOND
] !== 0)) ? HOUR
:
1951 a
[MINUTE
] < 0 || a
[MINUTE
] > 59 ? MINUTE
:
1952 a
[SECOND
] < 0 || a
[SECOND
] > 59 ? SECOND
:
1953 a
[MILLISECOND
] < 0 || a
[MILLISECOND
] > 999 ? MILLISECOND
:
1956 if (getParsingFlags(m
)._overflowDayOfYear
&& (overflow
< YEAR
|| overflow
> DATE
)) {
1959 if (getParsingFlags(m
)._overflowWeeks
&& overflow
=== -1) {
1962 if (getParsingFlags(m
)._overflowWeekday
&& overflow
=== -1) {
1966 getParsingFlags(m
).overflow
= overflow
;
1973 // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
1974 var extendedIsoRegex
= /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;
1975 var basicIsoRegex
= /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;
1977 var tzRegex
= /Z|[+-]\d\d(?::?\d\d)?/;
1980 ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
1981 ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
1982 ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
1983 ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
1984 ['YYYY-DDD', /\d{4}-\d{3}/],
1985 ['YYYY-MM', /\d{4}-\d\d/, false],
1986 ['YYYYYYMMDD', /[+-]\d{10}/],
1987 ['YYYYMMDD', /\d{8}/],
1988 // YYYYMM is NOT allowed by the standard
1989 ['GGGG[W]WWE', /\d{4}W\d{3}/],
1990 ['GGGG[W]WW', /\d{4}W\d{2}/, false],
1991 ['YYYYDDD', /\d{7}/]
1994 // iso time formats and regexes
1996 ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
1997 ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
1998 ['HH:mm:ss', /\d\d:\d\d:\d\d/],
1999 ['HH:mm', /\d\d:\d\d/],
2000 ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
2001 ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
2002 ['HHmmss', /\d\d\d\d\d\d/],
2003 ['HHmm', /\d\d\d\d/],
2007 var aspNetJsonRegex
= /^\/?Date\((\-?\d+)/i;
2009 // date from iso format
2010 function configFromISO(config
) {
2013 match
= extendedIsoRegex
.exec(string
) || basicIsoRegex
.exec(string
),
2014 allowTime
, dateFormat
, timeFormat
, tzFormat
;
2017 getParsingFlags(config
).iso
= true;
2019 for (i
= 0, l
= isoDates
.length
; i
< l
; i
++) {
2020 if (isoDates
[i
][1].exec(match
[1])) {
2021 dateFormat
= isoDates
[i
][0];
2022 allowTime
= isoDates
[i
][2] !== false;
2026 if (dateFormat
== null) {
2027 config
._isValid
= false;
2031 for (i
= 0, l
= isoTimes
.length
; i
< l
; i
++) {
2032 if (isoTimes
[i
][1].exec(match
[3])) {
2033 // match[2] should be 'T' or space
2034 timeFormat
= (match
[2] || ' ') + isoTimes
[i
][0];
2038 if (timeFormat
== null) {
2039 config
._isValid
= false;
2043 if (!allowTime
&& timeFormat
!= null) {
2044 config
._isValid
= false;
2048 if (tzRegex
.exec(match
[4])) {
2051 config
._isValid
= false;
2055 config
._f
= dateFormat
+ (timeFormat
|| '') + (tzFormat
|| '');
2056 configFromStringAndFormat(config
);
2058 config
._isValid
= false;
2062 // date from iso format or fallback
2063 function configFromString(config
) {
2064 var matched
= aspNetJsonRegex
.exec(config
._i
);
2066 if (matched
!== null) {
2067 config
._d
= new Date(+matched
[1]);
2071 configFromISO(config
);
2072 if (config
._isValid
=== false) {
2073 delete config
._isValid
;
2074 hooks
.createFromInputFallback(config
);
2078 hooks
.createFromInputFallback
= deprecate(
2079 'value provided is not in a recognized ISO format. moment construction falls back to js Date(), ' +
2080 'which is not reliable across all browsers and versions. Non ISO date formats are ' +
2081 'discouraged and will be removed in an upcoming major release. Please refer to ' +
2082 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
2084 config
._d
= new Date(config
._i
+ (config
._useUTC
? ' UTC' : ''));
2088 // Pick the first defined of two or three arguments.
2089 function defaults(a
, b
, c
) {
2099 function currentDateArray(config
) {
2100 // hooks is actually the exported moment object
2101 var nowValue
= new Date(hooks
.now());
2102 if (config
._useUTC
) {
2103 return [nowValue
.getUTCFullYear(), nowValue
.getUTCMonth(), nowValue
.getUTCDate()];
2105 return [nowValue
.getFullYear(), nowValue
.getMonth(), nowValue
.getDate()];
2108 // convert an array to a date.
2109 // the array should mirror the parameters below
2110 // note: all values past the year are optional and will default to the lowest possible value.
2111 // [year, month, day , hour, minute, second, millisecond]
2112 function configFromArray (config
) {
2113 var i
, date
, input
= [], currentDate
, yearToUse
;
2119 currentDate
= currentDateArray(config
);
2121 //compute day of the year from weeks and weekdays
2122 if (config
._w
&& config
._a
[DATE
] == null && config
._a
[MONTH
] == null) {
2123 dayOfYearFromWeekInfo(config
);
2126 //if the day of the year is set, figure out what it is
2127 if (config
._dayOfYear
) {
2128 yearToUse
= defaults(config
._a
[YEAR
], currentDate
[YEAR
]);
2130 if (config
._dayOfYear
> daysInYear(yearToUse
)) {
2131 getParsingFlags(config
)._overflowDayOfYear
= true;
2134 date
= createUTCDate(yearToUse
, 0, config
._dayOfYear
);
2135 config
._a
[MONTH
] = date
.getUTCMonth();
2136 config
._a
[DATE
] = date
.getUTCDate();
2139 // Default to current date.
2140 // * if no year, month, day of month are given, default to today
2141 // * if day of month is given, default month and year
2142 // * if month is given, default only year
2143 // * if year is given, don't default anything
2144 for (i
= 0; i
< 3 && config
._a
[i
] == null; ++i
) {
2145 config
._a
[i
] = input
[i
] = currentDate
[i
];
2148 // Zero out whatever was not defaulted, including time
2149 for (; i
< 7; i
++) {
2150 config
._a
[i
] = input
[i
] = (config
._a
[i
] == null) ? (i
=== 2 ? 1 : 0) : config
._a
[i
];
2153 // Check for 24:00:00.000
2154 if (config
._a
[HOUR
] === 24 &&
2155 config
._a
[MINUTE
] === 0 &&
2156 config
._a
[SECOND
] === 0 &&
2157 config
._a
[MILLISECOND
] === 0) {
2158 config
._nextDay
= true;
2159 config
._a
[HOUR
] = 0;
2162 config
._d
= (config
._useUTC
? createUTCDate
: createDate
).apply(null, input
);
2163 // Apply timezone offset from input. The actual utcOffset can be changed
2165 if (config
._tzm
!= null) {
2166 config
._d
.setUTCMinutes(config
._d
.getUTCMinutes() - config
._tzm
);
2169 if (config
._nextDay
) {
2170 config
._a
[HOUR
] = 24;
2174 function dayOfYearFromWeekInfo(config
) {
2175 var w
, weekYear
, week
, weekday
, dow
, doy
, temp
, weekdayOverflow
;
2178 if (w
.GG
!= null || w
.W
!= null || w
.E
!= null) {
2182 // TODO: We need to take the current isoWeekYear, but that depends on
2183 // how we interpret now (local, utc, fixed offset). So create
2184 // a now version of current config (take local/utc/offset flags, and
2186 weekYear
= defaults(w
.GG
, config
._a
[YEAR
], weekOfYear(createLocal(), 1, 4).year
);
2187 week
= defaults(w
.W
, 1);
2188 weekday
= defaults(w
.E
, 1);
2189 if (weekday
< 1 || weekday
> 7) {
2190 weekdayOverflow
= true;
2193 dow
= config
._locale
._week
.dow
;
2194 doy
= config
._locale
._week
.doy
;
2196 var curWeek
= weekOfYear(createLocal(), dow
, doy
);
2198 weekYear
= defaults(w
.gg
, config
._a
[YEAR
], curWeek
.year
);
2200 // Default to current week.
2201 week
= defaults(w
.w
, curWeek
.week
);
2204 // weekday -- low day numbers are considered next week
2206 if (weekday
< 0 || weekday
> 6) {
2207 weekdayOverflow
= true;
2209 } else if (w
.e
!= null) {
2210 // local weekday -- counting starts from begining of week
2211 weekday
= w
.e
+ dow
;
2212 if (w
.e
< 0 || w
.e
> 6) {
2213 weekdayOverflow
= true;
2216 // default to begining of week
2220 if (week
< 1 || week
> weeksInYear(weekYear
, dow
, doy
)) {
2221 getParsingFlags(config
)._overflowWeeks
= true;
2222 } else if (weekdayOverflow
!= null) {
2223 getParsingFlags(config
)._overflowWeekday
= true;
2225 temp
= dayOfYearFromWeeks(weekYear
, week
, weekday
, dow
, doy
);
2226 config
._a
[YEAR
] = temp
.year
;
2227 config
._dayOfYear
= temp
.dayOfYear
;
2231 // constant that refers to the ISO standard
2232 hooks
.ISO_8601 = function () {};
2234 // date from string and format string
2235 function configFromStringAndFormat(config
) {
2236 // TODO: Move this to another part of the creation flow to prevent circular deps
2237 if (config
._f
=== hooks
.ISO_8601
) {
2238 configFromISO(config
);
2243 getParsingFlags(config
).empty
= true;
2245 // This array is used to make a Date, either with `new Date` or `Date.UTC`
2246 var string
= '' + config
._i
,
2247 i
, parsedInput
, tokens
, token
, skipped
,
2248 stringLength
= string
.length
,
2249 totalParsedInputLength
= 0;
2251 tokens
= expandFormat(config
._f
, config
._locale
).match(formattingTokens
) || [];
2253 for (i
= 0; i
< tokens
.length
; i
++) {
2255 parsedInput
= (string
.match(getParseRegexForToken(token
, config
)) || [])[0];
2256 // console.log('token', token, 'parsedInput', parsedInput,
2257 // 'regex', getParseRegexForToken(token, config));
2259 skipped
= string
.substr(0, string
.indexOf(parsedInput
));
2260 if (skipped
.length
> 0) {
2261 getParsingFlags(config
).unusedInput
.push(skipped
);
2263 string
= string
.slice(string
.indexOf(parsedInput
) + parsedInput
.length
);
2264 totalParsedInputLength
+= parsedInput
.length
;
2266 // don't parse if it's not a known token
2267 if (formatTokenFunctions
[token
]) {
2269 getParsingFlags(config
).empty
= false;
2272 getParsingFlags(config
).unusedTokens
.push(token
);
2274 addTimeToArrayFromToken(token
, parsedInput
, config
);
2276 else if (config
._strict
&& !parsedInput
) {
2277 getParsingFlags(config
).unusedTokens
.push(token
);
2281 // add remaining unparsed input length to the string
2282 getParsingFlags(config
).charsLeftOver
= stringLength
- totalParsedInputLength
;
2283 if (string
.length
> 0) {
2284 getParsingFlags(config
).unusedInput
.push(string
);
2287 // clear _12h flag if hour is <= 12
2288 if (config
._a
[HOUR
] <= 12 &&
2289 getParsingFlags(config
).bigHour
=== true &&
2290 config
._a
[HOUR
] > 0) {
2291 getParsingFlags(config
).bigHour
= undefined;
2294 getParsingFlags(config
).parsedDateParts
= config
._a
.slice(0);
2295 getParsingFlags(config
).meridiem
= config
._meridiem
;
2297 config
._a
[HOUR
] = meridiemFixWrap(config
._locale
, config
._a
[HOUR
], config
._meridiem
);
2299 configFromArray(config
);
2300 checkOverflow(config
);
2304 function meridiemFixWrap (locale
, hour
, meridiem
) {
2307 if (meridiem
== null) {
2311 if (locale
.meridiemHour
!= null) {
2312 return locale
.meridiemHour(hour
, meridiem
);
2313 } else if (locale
.isPM
!= null) {
2315 isPm
= locale
.isPM(meridiem
);
2316 if (isPm
&& hour
< 12) {
2319 if (!isPm
&& hour
=== 12) {
2324 // this is not supposed to happen
2329 // date from string and array of format strings
2330 function configFromStringAndArray(config
) {
2338 if (config
._f
.length
=== 0) {
2339 getParsingFlags(config
).invalidFormat
= true;
2340 config
._d
= new Date(NaN
);
2344 for (i
= 0; i
< config
._f
.length
; i
++) {
2346 tempConfig
= copyConfig({}, config
);
2347 if (config
._useUTC
!= null) {
2348 tempConfig
._useUTC
= config
._useUTC
;
2350 tempConfig
._f
= config
._f
[i
];
2351 configFromStringAndFormat(tempConfig
);
2353 if (!isValid(tempConfig
)) {
2357 // if there is any input that was not parsed add a penalty for that format
2358 currentScore
+= getParsingFlags(tempConfig
).charsLeftOver
;
2361 currentScore
+= getParsingFlags(tempConfig
).unusedTokens
.length
* 10;
2363 getParsingFlags(tempConfig
).score
= currentScore
;
2365 if (scoreToBeat
== null || currentScore
< scoreToBeat
) {
2366 scoreToBeat
= currentScore
;
2367 bestMoment
= tempConfig
;
2371 extend(config
, bestMoment
|| tempConfig
);
2374 function configFromObject(config
) {
2379 var i
= normalizeObjectUnits(config
._i
);
2380 config
._a
= map([i
.year
, i
.month
, i
.day
|| i
.date
, i
.hour
, i
.minute
, i
.second
, i
.millisecond
], function (obj
) {
2381 return obj
&& parseInt(obj
, 10);
2384 configFromArray(config
);
2387 function createFromConfig (config
) {
2388 var res
= new Moment(checkOverflow(prepareConfig(config
)));
2390 // Adding is smart enough around DST
2392 res
._nextDay
= undefined;
2398 function prepareConfig (config
) {
2399 var input
= config
._i
,
2402 config
._locale
= config
._locale
|| getLocale(config
._l
);
2404 if (input
=== null || (format
=== undefined && input
=== '')) {
2405 return createInvalid({nullInput
: true});
2408 if (typeof input
=== 'string') {
2409 config
._i
= input
= config
._locale
.preparse(input
);
2412 if (isMoment(input
)) {
2413 return new Moment(checkOverflow(input
));
2414 } else if (isDate(input
)) {
2416 } else if (isArray(format
)) {
2417 configFromStringAndArray(config
);
2418 } else if (format
) {
2419 configFromStringAndFormat(config
);
2421 configFromInput(config
);
2424 if (!isValid(config
)) {
2431 function configFromInput(config
) {
2432 var input
= config
._i
;
2433 if (input
=== undefined) {
2434 config
._d
= new Date(hooks
.now());
2435 } else if (isDate(input
)) {
2436 config
._d
= new Date(input
.valueOf());
2437 } else if (typeof input
=== 'string') {
2438 configFromString(config
);
2439 } else if (isArray(input
)) {
2440 config
._a
= map(input
.slice(0), function (obj
) {
2441 return parseInt(obj
, 10);
2443 configFromArray(config
);
2444 } else if (typeof(input
) === 'object') {
2445 configFromObject(config
);
2446 } else if (isNumber(input
)) {
2447 // from milliseconds
2448 config
._d
= new Date(input
);
2450 hooks
.createFromInputFallback(config
);
2454 function createLocalOrUTC (input
, format
, locale
, strict
, isUTC
) {
2457 if (locale
=== true || locale
=== false) {
2462 if ((isObject(input
) && isObjectEmpty(input
)) ||
2463 (isArray(input
) && input
.length
=== 0)) {
2466 // object construction must be done this way.
2467 // https://github.com/moment/moment/issues/1423
2468 c
._isAMomentObject
= true;
2469 c
._useUTC
= c
._isUTC
= isUTC
;
2475 return createFromConfig(c
);
2478 function createLocal (input
, format
, locale
, strict
) {
2479 return createLocalOrUTC(input
, format
, locale
, strict
, false);
2482 var prototypeMin
= deprecate(
2483 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
2485 var other
= createLocal
.apply(null, arguments
);
2486 if (this.isValid() && other
.isValid()) {
2487 return other
< this ? this : other
;
2489 return createInvalid();
2494 var prototypeMax
= deprecate(
2495 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
2497 var other
= createLocal
.apply(null, arguments
);
2498 if (this.isValid() && other
.isValid()) {
2499 return other
> this ? this : other
;
2501 return createInvalid();
2506 // Pick a moment m from moments so that m[fn](other) is true for all
2507 // other. This relies on the function fn to be transitive.
2509 // moments should either be an array of moment objects or an array, whose
2510 // first element is an array of moment objects.
2511 function pickBy(fn
, moments
) {
2513 if (moments
.length
=== 1 && isArray(moments
[0])) {
2514 moments
= moments
[0];
2516 if (!moments
.length
) {
2517 return createLocal();
2520 for (i
= 1; i
< moments
.length
; ++i
) {
2521 if (!moments
[i
].isValid() || moments
[i
][fn
](res
)) {
2528 // TODO: Use [].sort instead?
2530 var args
= [].slice
.call(arguments
, 0);
2532 return pickBy('isBefore', args
);
2536 var args
= [].slice
.call(arguments
, 0);
2538 return pickBy('isAfter', args
);
2541 var now = function () {
2542 return Date
.now
? Date
.now() : +(new Date());
2545 function Duration (duration
) {
2546 var normalizedInput
= normalizeObjectUnits(duration
),
2547 years
= normalizedInput
.year
|| 0,
2548 quarters
= normalizedInput
.quarter
|| 0,
2549 months
= normalizedInput
.month
|| 0,
2550 weeks
= normalizedInput
.week
|| 0,
2551 days
= normalizedInput
.day
|| 0,
2552 hours
= normalizedInput
.hour
|| 0,
2553 minutes
= normalizedInput
.minute
|| 0,
2554 seconds
= normalizedInput
.second
|| 0,
2555 milliseconds
= normalizedInput
.millisecond
|| 0;
2557 // representation for dateAddRemove
2558 this._milliseconds
= +milliseconds
+
2559 seconds
* 1e3
+ // 1000
2560 minutes
* 6e4
+ // 1000 * 60
2561 hours
* 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
2562 // Because of dateAddRemove treats 24 hours as different from a
2563 // day when working around DST, we need to store them separately
2564 this._days
= +days
+
2566 // It is impossible translate months into days without knowing
2567 // which months you are are talking about, so we have to store
2569 this._months
= +months
+
2575 this._locale
= getLocale();
2580 function isDuration (obj
) {
2581 return obj
instanceof Duration
;
2584 function absRound (number
) {
2586 return Math
.round(-1 * number
) * -1;
2588 return Math
.round(number
);
2594 function offset (token
, separator
) {
2595 addFormatToken(token
, 0, 0, function () {
2596 var offset
= this.utcOffset();
2602 return sign
+ zeroFill(~~(offset
/ 60), 2) + separator
+ zeroFill(~~(offset
) % 60, 2);
2611 addRegexToken('Z', matchShortOffset
);
2612 addRegexToken('ZZ', matchShortOffset
);
2613 addParseToken(['Z', 'ZZ'], function (input
, array
, config
) {
2614 config
._useUTC
= true;
2615 config
._tzm
= offsetFromString(matchShortOffset
, input
);
2621 // '+10:00' > ['10', '00']
2622 // '-1530' > ['-15', '30']
2623 var chunkOffset
= /([\+\-]|\d\d)/gi;
2625 function offsetFromString(matcher
, string
) {
2626 var matches
= (string
|| '').match(matcher
);
2628 if (matches
=== null) {
2632 var chunk
= matches
[matches
.length
- 1] || [];
2633 var parts
= (chunk
+ '').match(chunkOffset
) || ['-', 0, 0];
2634 var minutes
= +(parts
[1] * 60) + toInt(parts
[2]);
2636 return minutes
=== 0 ?
2638 parts
[0] === '+' ? minutes
: -minutes
;
2641 // Return a moment from input, that is local/utc/zone equivalent to model.
2642 function cloneWithOffset(input
, model
) {
2645 res
= model
.clone();
2646 diff
= (isMoment(input
) || isDate(input
) ? input
.valueOf() : createLocal(input
).valueOf()) - res
.valueOf();
2647 // Use low-level api, because this fn is low-level api.
2648 res
._d
.setTime(res
._d
.valueOf() + diff
);
2649 hooks
.updateOffset(res
, false);
2652 return createLocal(input
).local();
2656 function getDateOffset (m
) {
2657 // On Firefox.24 Date#getTimezoneOffset returns a floating point.
2658 // https://github.com/moment/moment/pull/1871
2659 return -Math
.round(m
._d
.getTimezoneOffset() / 15) * 15;
2664 // This function will be called whenever a moment is mutated.
2665 // It is intended to keep the offset in sync with the timezone.
2666 hooks
.updateOffset = function () {};
2670 // keepLocalTime = true means only change the timezone, without
2671 // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
2672 // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
2673 // +0200, so we adjust the time as needed, to be valid.
2675 // Keeping the time actually adds/subtracts (one hour)
2676 // from the actual represented time. That is why we call updateOffset
2677 // a second time. In case it wants us to change the offset again
2678 // _changeInProgress == true case, then we have to adjust, because
2679 // there is no such time in the given timezone.
2680 function getSetOffset (input
, keepLocalTime
) {
2681 var offset
= this._offset
|| 0,
2683 if (!this.isValid()) {
2684 return input
!= null ? this : NaN
;
2686 if (input
!= null) {
2687 if (typeof input
=== 'string') {
2688 input
= offsetFromString(matchShortOffset
, input
);
2689 if (input
=== null) {
2692 } else if (Math
.abs(input
) < 16) {
2695 if (!this._isUTC
&& keepLocalTime
) {
2696 localAdjust
= getDateOffset(this);
2698 this._offset
= input
;
2700 if (localAdjust
!= null) {
2701 this.add(localAdjust
, 'm');
2703 if (offset
!== input
) {
2704 if (!keepLocalTime
|| this._changeInProgress
) {
2705 addSubtract(this, createDuration(input
- offset
, 'm'), 1, false);
2706 } else if (!this._changeInProgress
) {
2707 this._changeInProgress
= true;
2708 hooks
.updateOffset(this, true);
2709 this._changeInProgress
= null;
2714 return this._isUTC
? offset
: getDateOffset(this);
2718 function getSetZone (input
, keepLocalTime
) {
2719 if (input
!= null) {
2720 if (typeof input
!== 'string') {
2724 this.utcOffset(input
, keepLocalTime
);
2728 return -this.utcOffset();
2732 function setOffsetToUTC (keepLocalTime
) {
2733 return this.utcOffset(0, keepLocalTime
);
2736 function setOffsetToLocal (keepLocalTime
) {
2738 this.utcOffset(0, keepLocalTime
);
2739 this._isUTC
= false;
2741 if (keepLocalTime
) {
2742 this.subtract(getDateOffset(this), 'm');
2748 function setOffsetToParsedOffset () {
2749 if (this._tzm
!= null) {
2750 this.utcOffset(this._tzm
);
2751 } else if (typeof this._i
=== 'string') {
2752 var tZone
= offsetFromString(matchOffset
, this._i
);
2753 if (tZone
!= null) {
2754 this.utcOffset(tZone
);
2757 this.utcOffset(0, true);
2763 function hasAlignedHourOffset (input
) {
2764 if (!this.isValid()) {
2767 input
= input
? createLocal(input
).utcOffset() : 0;
2769 return (this.utcOffset() - input
) % 60 === 0;
2772 function isDaylightSavingTime () {
2774 this.utcOffset() > this.clone().month(0).utcOffset() ||
2775 this.utcOffset() > this.clone().month(5).utcOffset()
2779 function isDaylightSavingTimeShifted () {
2780 if (!isUndefined(this._isDSTShifted
)) {
2781 return this._isDSTShifted
;
2786 copyConfig(c
, this);
2787 c
= prepareConfig(c
);
2790 var other
= c
._isUTC
? createUTC(c
._a
) : createLocal(c
._a
);
2791 this._isDSTShifted
= this.isValid() &&
2792 compareArrays(c
._a
, other
.toArray()) > 0;
2794 this._isDSTShifted
= false;
2797 return this._isDSTShifted
;
2800 function isLocal () {
2801 return this.isValid() ? !this._isUTC
: false;
2804 function isUtcOffset () {
2805 return this.isValid() ? this._isUTC
: false;
2809 return this.isValid() ? this._isUTC
&& this._offset
=== 0 : false;
2812 // ASP.NET json date format regex
2813 var aspNetRegex
= /^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/;
2815 // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
2816 // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
2817 // and further modified to allow for strings containing both week and day
2818 var isoRegex
= /^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;
2820 function createDuration (input
, key
) {
2821 var duration
= input
,
2822 // matching against regexp is expensive, do it on demand
2828 if (isDuration(input
)) {
2830 ms
: input
._milliseconds
,
2834 } else if (isNumber(input
)) {
2837 duration
[key
] = input
;
2839 duration
.milliseconds
= input
;
2841 } else if (!!(match
= aspNetRegex
.exec(input
))) {
2842 sign
= (match
[1] === '-') ? -1 : 1;
2845 d
: toInt(match
[DATE
]) * sign
,
2846 h
: toInt(match
[HOUR
]) * sign
,
2847 m
: toInt(match
[MINUTE
]) * sign
,
2848 s
: toInt(match
[SECOND
]) * sign
,
2849 ms
: toInt(absRound(match
[MILLISECOND
] * 1000)) * sign
// the millisecond decimal point is included in the match
2851 } else if (!!(match
= isoRegex
.exec(input
))) {
2852 sign
= (match
[1] === '-') ? -1 : 1;
2854 y
: parseIso(match
[2], sign
),
2855 M
: parseIso(match
[3], sign
),
2856 w
: parseIso(match
[4], sign
),
2857 d
: parseIso(match
[5], sign
),
2858 h
: parseIso(match
[6], sign
),
2859 m
: parseIso(match
[7], sign
),
2860 s
: parseIso(match
[8], sign
)
2862 } else if (duration
== null) {// checks for null or undefined
2864 } else if (typeof duration
=== 'object' && ('from' in duration
|| 'to' in duration
)) {
2865 diffRes
= momentsDifference(createLocal(duration
.from), createLocal(duration
.to
));
2868 duration
.ms
= diffRes
.milliseconds
;
2869 duration
.M
= diffRes
.months
;
2872 ret
= new Duration(duration
);
2874 if (isDuration(input
) && hasOwnProp(input
, '_locale')) {
2875 ret
._locale
= input
._locale
;
2881 createDuration
.fn
= Duration
.prototype;
2883 function parseIso (inp
, sign
) {
2884 // We'd normally use ~~inp for this, but unfortunately it also
2885 // converts floats to ints.
2886 // inp may be undefined, so careful calling replace on it.
2887 var res
= inp
&& parseFloat(inp
.replace(',', '.'));
2888 // apply sign while we're at it
2889 return (isNaN(res
) ? 0 : res
) * sign
;
2892 function positiveMomentsDifference(base
, other
) {
2893 var res
= {milliseconds
: 0, months
: 0};
2895 res
.months
= other
.month() - base
.month() +
2896 (other
.year() - base
.year()) * 12;
2897 if (base
.clone().add(res
.months
, 'M').isAfter(other
)) {
2901 res
.milliseconds
= +other
- +(base
.clone().add(res
.months
, 'M'));
2906 function momentsDifference(base
, other
) {
2908 if (!(base
.isValid() && other
.isValid())) {
2909 return {milliseconds
: 0, months
: 0};
2912 other
= cloneWithOffset(other
, base
);
2913 if (base
.isBefore(other
)) {
2914 res
= positiveMomentsDifference(base
, other
);
2916 res
= positiveMomentsDifference(other
, base
);
2917 res
.milliseconds
= -res
.milliseconds
;
2918 res
.months
= -res
.months
;
2924 // TODO: remove 'name' arg after deprecation is removed
2925 function createAdder(direction
, name
) {
2926 return function (val
, period
) {
2928 //invert the arguments, but complain about it
2929 if (period
!== null && !isNaN(+period
)) {
2930 deprecateSimple(name
, 'moment().' + name
+ '(period, number) is deprecated. Please use moment().' + name
+ '(number, period). ' +
2931 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
2932 tmp
= val
; val
= period
; period
= tmp
;
2935 val
= typeof val
=== 'string' ? +val
: val
;
2936 dur
= createDuration(val
, period
);
2937 addSubtract(this, dur
, direction
);
2942 function addSubtract (mom
, duration
, isAdding
, updateOffset
) {
2943 var milliseconds
= duration
._milliseconds
,
2944 days
= absRound(duration
._days
),
2945 months
= absRound(duration
._months
);
2947 if (!mom
.isValid()) {
2952 updateOffset
= updateOffset
== null ? true : updateOffset
;
2955 mom
._d
.setTime(mom
._d
.valueOf() + milliseconds
* isAdding
);
2958 set$1(mom
, 'Date', get(mom
, 'Date') + days
* isAdding
);
2961 setMonth(mom
, get(mom
, 'Month') + months
* isAdding
);
2964 hooks
.updateOffset(mom
, days
|| months
);
2968 var add
= createAdder(1, 'add');
2969 var subtract
= createAdder(-1, 'subtract');
2971 function getCalendarFormat(myMoment
, now
) {
2972 var diff
= myMoment
.diff(now
, 'days', true);
2973 return diff
< -6 ? 'sameElse' :
2974 diff
< -1 ? 'lastWeek' :
2975 diff
< 0 ? 'lastDay' :
2976 diff
< 1 ? 'sameDay' :
2977 diff
< 2 ? 'nextDay' :
2978 diff
< 7 ? 'nextWeek' : 'sameElse';
2981 function calendar
$1 (time
, formats
) {
2982 // We want to compare the start of today, vs this.
2983 // Getting start-of-today depends on whether we're local/utc/offset or not.
2984 var now
= time
|| createLocal(),
2985 sod
= cloneWithOffset(now
, this).startOf('day'),
2986 format
= hooks
.calendarFormat(this, sod
) || 'sameElse';
2988 var output
= formats
&& (isFunction(formats
[format
]) ? formats
[format
].call(this, now
) : formats
[format
]);
2990 return this.format(output
|| this.localeData().calendar(format
, this, createLocal(now
)));
2994 return new Moment(this);
2997 function isAfter (input
, units
) {
2998 var localInput
= isMoment(input
) ? input
: createLocal(input
);
2999 if (!(this.isValid() && localInput
.isValid())) {
3002 units
= normalizeUnits(!isUndefined(units
) ? units
: 'millisecond');
3003 if (units
=== 'millisecond') {
3004 return this.valueOf() > localInput
.valueOf();
3006 return localInput
.valueOf() < this.clone().startOf(units
).valueOf();
3010 function isBefore (input
, units
) {
3011 var localInput
= isMoment(input
) ? input
: createLocal(input
);
3012 if (!(this.isValid() && localInput
.isValid())) {
3015 units
= normalizeUnits(!isUndefined(units
) ? units
: 'millisecond');
3016 if (units
=== 'millisecond') {
3017 return this.valueOf() < localInput
.valueOf();
3019 return this.clone().endOf(units
).valueOf() < localInput
.valueOf();
3023 function isBetween (from, to
, units
, inclusivity
) {
3024 inclusivity
= inclusivity
|| '()';
3025 return (inclusivity
[0] === '(' ? this.isAfter(from, units
) : !this.isBefore(from, units
)) &&
3026 (inclusivity
[1] === ')' ? this.isBefore(to
, units
) : !this.isAfter(to
, units
));
3029 function isSame (input
, units
) {
3030 var localInput
= isMoment(input
) ? input
: createLocal(input
),
3032 if (!(this.isValid() && localInput
.isValid())) {
3035 units
= normalizeUnits(units
|| 'millisecond');
3036 if (units
=== 'millisecond') {
3037 return this.valueOf() === localInput
.valueOf();
3039 inputMs
= localInput
.valueOf();
3040 return this.clone().startOf(units
).valueOf() <= inputMs
&& inputMs
<= this.clone().endOf(units
).valueOf();
3044 function isSameOrAfter (input
, units
) {
3045 return this.isSame(input
, units
) || this.isAfter(input
,units
);
3048 function isSameOrBefore (input
, units
) {
3049 return this.isSame(input
, units
) || this.isBefore(input
,units
);
3052 function diff (input
, units
, asFloat
) {
3057 if (!this.isValid()) {
3061 that
= cloneWithOffset(input
, this);
3063 if (!that
.isValid()) {
3067 zoneDelta
= (that
.utcOffset() - this.utcOffset()) * 6e4
;
3069 units
= normalizeUnits(units
);
3071 if (units
=== 'year' || units
=== 'month' || units
=== 'quarter') {
3072 output
= monthDiff(this, that
);
3073 if (units
=== 'quarter') {
3074 output
= output
/ 3;
3075 } else if (units
=== 'year') {
3076 output
= output
/ 12;
3079 delta
= this - that
;
3080 output
= units
=== 'second' ? delta
/ 1e3
: // 1000
3081 units
=== 'minute' ? delta
/ 6e4
: // 1000 * 60
3082 units
=== 'hour' ? delta
/ 36e5
: // 1000 * 60 * 60
3083 units
=== 'day' ? (delta
- zoneDelta
) / 864e5
: // 1000 * 60 * 60 * 24, negate dst
3084 units
=== 'week' ? (delta
- zoneDelta
) / 6048e5
: // 1000 * 60 * 60 * 24 * 7, negate dst
3087 return asFloat
? output
: absFloor(output
);
3090 function monthDiff (a
, b
) {
3091 // difference in months
3092 var wholeMonthDiff
= ((b
.year() - a
.year()) * 12) + (b
.month() - a
.month()),
3093 // b is in (anchor - 1 month, anchor + 1 month)
3094 anchor
= a
.clone().add(wholeMonthDiff
, 'months'),
3097 if (b
- anchor
< 0) {
3098 anchor2
= a
.clone().add(wholeMonthDiff
- 1, 'months');
3099 // linear across the month
3100 adjust
= (b
- anchor
) / (anchor
- anchor2
);
3102 anchor2
= a
.clone().add(wholeMonthDiff
+ 1, 'months');
3103 // linear across the month
3104 adjust
= (b
- anchor
) / (anchor2
- anchor
);
3107 //check for negative zero, return zero if negative zero
3108 return -(wholeMonthDiff
+ adjust
) || 0;
3111 hooks
.defaultFormat
= 'YYYY-MM-DDTHH:mm:ssZ';
3112 hooks
.defaultFormatUtc
= 'YYYY-MM-DDTHH:mm:ss[Z]';
3114 function toString () {
3115 return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
3118 function toISOString () {
3119 var m
= this.clone().utc();
3120 if (0 < m
.year() && m
.year() <= 9999) {
3121 if (isFunction(Date
.prototype.toISOString
)) {
3122 // native implementation is ~50x faster, use it when we can
3123 return this.toDate().toISOString();
3125 return formatMoment(m
, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
3128 return formatMoment(m
, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
3133 * Return a human readable representation of a moment that can
3134 * also be evaluated to get a new moment which is the same
3136 * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
3138 function inspect () {
3139 if (!this.isValid()) {
3140 return 'moment.invalid(/* ' + this._i
+ ' */)';
3142 var func
= 'moment';
3144 if (!this.isLocal()) {
3145 func
= this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
3148 var prefix
= '[' + func
+ '("]';
3149 var year
= (0 < this.year() && this.year() <= 9999) ? 'YYYY' : 'YYYYYY';
3150 var datetime
= '-MM-DD[T]HH:mm:ss.SSS';
3151 var suffix
= zone
+ '[")]';
3153 return this.format(prefix
+ year
+ datetime
+ suffix
);
3156 function format (inputString
) {
3158 inputString
= this.isUtc() ? hooks
.defaultFormatUtc
: hooks
.defaultFormat
;
3160 var output
= formatMoment(this, inputString
);
3161 return this.localeData().postformat(output
);
3164 function from (time
, withoutSuffix
) {
3165 if (this.isValid() &&
3166 ((isMoment(time
) && time
.isValid()) ||
3167 createLocal(time
).isValid())) {
3168 return createDuration({to
: this, from: time
}).locale(this.locale()).humanize(!withoutSuffix
);
3170 return this.localeData().invalidDate();
3174 function fromNow (withoutSuffix
) {
3175 return this.from(createLocal(), withoutSuffix
);
3178 function to (time
, withoutSuffix
) {
3179 if (this.isValid() &&
3180 ((isMoment(time
) && time
.isValid()) ||
3181 createLocal(time
).isValid())) {
3182 return createDuration({from: this, to
: time
}).locale(this.locale()).humanize(!withoutSuffix
);
3184 return this.localeData().invalidDate();
3188 function toNow (withoutSuffix
) {
3189 return this.to(createLocal(), withoutSuffix
);
3192 // If passed a locale key, it will set the locale for this
3193 // instance. Otherwise, it will return the locale configuration
3194 // variables for this instance.
3195 function locale (key
) {
3198 if (key
=== undefined) {
3199 return this._locale
._abbr
;
3201 newLocaleData
= getLocale(key
);
3202 if (newLocaleData
!= null) {
3203 this._locale
= newLocaleData
;
3209 var lang
= deprecate(
3210 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
3212 if (key
=== undefined) {
3213 return this.localeData();
3215 return this.locale(key
);
3220 function localeData () {
3221 return this._locale
;
3224 function startOf (units
) {
3225 units
= normalizeUnits(units
);
3226 // the following switch intentionally omits break keywords
3227 // to utilize falling through the cases.
3249 this.milliseconds(0);
3252 // weeks are a special case
3253 if (units
=== 'week') {
3256 if (units
=== 'isoWeek') {
3260 // quarters are also special
3261 if (units
=== 'quarter') {
3262 this.month(Math
.floor(this.month() / 3) * 3);
3268 function endOf (units
) {
3269 units
= normalizeUnits(units
);
3270 if (units
=== undefined || units
=== 'millisecond') {
3274 // 'date' is an alias for 'day', so it should be considered as such.
3275 if (units
=== 'date') {
3279 return this.startOf(units
).add(1, (units
=== 'isoWeek' ? 'week' : units
)).subtract(1, 'ms');
3282 function valueOf () {
3283 return this._d
.valueOf() - ((this._offset
|| 0) * 60000);
3287 return Math
.floor(this.valueOf() / 1000);
3290 function toDate () {
3291 return new Date(this.valueOf());
3294 function toArray () {
3296 return [m
.year(), m
.month(), m
.date(), m
.hour(), m
.minute(), m
.second(), m
.millisecond()];
3299 function toObject () {
3306 minutes
: m
.minutes(),
3307 seconds
: m
.seconds(),
3308 milliseconds
: m
.milliseconds()
3312 function toJSON () {
3313 // new Date(NaN).toJSON() === null
3314 return this.isValid() ? this.toISOString() : null;
3317 function isValid
$1 () {
3318 return isValid(this);
3321 function parsingFlags () {
3322 return extend({}, getParsingFlags(this));
3325 function invalidAt () {
3326 return getParsingFlags(this).overflow
;
3329 function creationData() {
3333 locale
: this._locale
,
3335 strict
: this._strict
3341 addFormatToken(0, ['gg', 2], 0, function () {
3342 return this.weekYear() % 100;
3345 addFormatToken(0, ['GG', 2], 0, function () {
3346 return this.isoWeekYear() % 100;
3349 function addWeekYearFormatToken (token
, getter
) {
3350 addFormatToken(0, [token
, token
.length
], 0, getter
);
3353 addWeekYearFormatToken('gggg', 'weekYear');
3354 addWeekYearFormatToken('ggggg', 'weekYear');
3355 addWeekYearFormatToken('GGGG', 'isoWeekYear');
3356 addWeekYearFormatToken('GGGGG', 'isoWeekYear');
3360 addUnitAlias('weekYear', 'gg');
3361 addUnitAlias('isoWeekYear', 'GG');
3365 addUnitPriority('weekYear', 1);
3366 addUnitPriority('isoWeekYear', 1);
3371 addRegexToken('G', matchSigned
);
3372 addRegexToken('g', matchSigned
);
3373 addRegexToken('GG', match1to2
, match2
);
3374 addRegexToken('gg', match1to2
, match2
);
3375 addRegexToken('GGGG', match1to4
, match4
);
3376 addRegexToken('gggg', match1to4
, match4
);
3377 addRegexToken('GGGGG', match1to6
, match6
);
3378 addRegexToken('ggggg', match1to6
, match6
);
3380 addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input
, week
, config
, token
) {
3381 week
[token
.substr(0, 2)] = toInt(input
);
3384 addWeekParseToken(['gg', 'GG'], function (input
, week
, config
, token
) {
3385 week
[token
] = hooks
.parseTwoDigitYear(input
);
3390 function getSetWeekYear (input
) {
3391 return getSetWeekYearHelper
.call(this,
3395 this.localeData()._week
.dow
,
3396 this.localeData()._week
.doy
);
3399 function getSetISOWeekYear (input
) {
3400 return getSetWeekYearHelper
.call(this,
3401 input
, this.isoWeek(), this.isoWeekday(), 1, 4);
3404 function getISOWeeksInYear () {
3405 return weeksInYear(this.year(), 1, 4);
3408 function getWeeksInYear () {
3409 var weekInfo
= this.localeData()._week
;
3410 return weeksInYear(this.year(), weekInfo
.dow
, weekInfo
.doy
);
3413 function getSetWeekYearHelper(input
, week
, weekday
, dow
, doy
) {
3415 if (input
== null) {
3416 return weekOfYear(this, dow
, doy
).year
;
3418 weeksTarget
= weeksInYear(input
, dow
, doy
);
3419 if (week
> weeksTarget
) {
3422 return setWeekAll
.call(this, input
, week
, weekday
, dow
, doy
);
3426 function setWeekAll(weekYear
, week
, weekday
, dow
, doy
) {
3427 var dayOfYearData
= dayOfYearFromWeeks(weekYear
, week
, weekday
, dow
, doy
),
3428 date
= createUTCDate(dayOfYearData
.year
, 0, dayOfYearData
.dayOfYear
);
3430 this.year(date
.getUTCFullYear());
3431 this.month(date
.getUTCMonth());
3432 this.date(date
.getUTCDate());
3438 addFormatToken('Q', 0, 'Qo', 'quarter');
3442 addUnitAlias('quarter', 'Q');
3446 addUnitPriority('quarter', 7);
3450 addRegexToken('Q', match1
);
3451 addParseToken('Q', function (input
, array
) {
3452 array
[MONTH
] = (toInt(input
) - 1) * 3;
3457 function getSetQuarter (input
) {
3458 return input
== null ? Math
.ceil((this.month() + 1) / 3) : this.month((input
- 1) * 3 + this.month() % 3);
3463 addFormatToken('D', ['DD', 2], 'Do', 'date');
3467 addUnitAlias('date', 'D');
3470 addUnitPriority('date', 9);
3474 addRegexToken('D', match1to2
);
3475 addRegexToken('DD', match1to2
, match2
);
3476 addRegexToken('Do', function (isStrict
, locale
) {
3477 return isStrict
? locale
._ordinalParse
: locale
._ordinalParseLenient
;
3480 addParseToken(['D', 'DD'], DATE
);
3481 addParseToken('Do', function (input
, array
) {
3482 array
[DATE
] = toInt(input
.match(match1to2
)[0], 10);
3487 var getSetDayOfMonth
= makeGetSet('Date', true);
3491 addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
3495 addUnitAlias('dayOfYear', 'DDD');
3498 addUnitPriority('dayOfYear', 4);
3502 addRegexToken('DDD', match1to3
);
3503 addRegexToken('DDDD', match3
);
3504 addParseToken(['DDD', 'DDDD'], function (input
, array
, config
) {
3505 config
._dayOfYear
= toInt(input
);
3512 function getSetDayOfYear (input
) {
3513 var dayOfYear
= Math
.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5
) + 1;
3514 return input
== null ? dayOfYear
: this.add((input
- dayOfYear
), 'd');
3519 addFormatToken('m', ['mm', 2], 0, 'minute');
3523 addUnitAlias('minute', 'm');
3527 addUnitPriority('minute', 14);
3531 addRegexToken('m', match1to2
);
3532 addRegexToken('mm', match1to2
, match2
);
3533 addParseToken(['m', 'mm'], MINUTE
);
3537 var getSetMinute
= makeGetSet('Minutes', false);
3541 addFormatToken('s', ['ss', 2], 0, 'second');
3545 addUnitAlias('second', 's');
3549 addUnitPriority('second', 15);
3553 addRegexToken('s', match1to2
);
3554 addRegexToken('ss', match1to2
, match2
);
3555 addParseToken(['s', 'ss'], SECOND
);
3559 var getSetSecond
= makeGetSet('Seconds', false);
3563 addFormatToken('S', 0, 0, function () {
3564 return ~~(this.millisecond() / 100);
3567 addFormatToken(0, ['SS', 2], 0, function () {
3568 return ~~(this.millisecond() / 10);
3571 addFormatToken(0, ['SSS', 3], 0, 'millisecond');
3572 addFormatToken(0, ['SSSS', 4], 0, function () {
3573 return this.millisecond() * 10;
3575 addFormatToken(0, ['SSSSS', 5], 0, function () {
3576 return this.millisecond() * 100;
3578 addFormatToken(0, ['SSSSSS', 6], 0, function () {
3579 return this.millisecond() * 1000;
3581 addFormatToken(0, ['SSSSSSS', 7], 0, function () {
3582 return this.millisecond() * 10000;
3584 addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
3585 return this.millisecond() * 100000;
3587 addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
3588 return this.millisecond() * 1000000;
3594 addUnitAlias('millisecond', 'ms');
3598 addUnitPriority('millisecond', 16);
3602 addRegexToken('S', match1to3
, match1
);
3603 addRegexToken('SS', match1to3
, match2
);
3604 addRegexToken('SSS', match1to3
, match3
);
3607 for (token
= 'SSSS'; token
.length
<= 9; token
+= 'S') {
3608 addRegexToken(token
, matchUnsigned
);
3611 function parseMs(input
, array
) {
3612 array
[MILLISECOND
] = toInt(('0.' + input
) * 1000);
3615 for (token
= 'S'; token
.length
<= 9; token
+= 'S') {
3616 addParseToken(token
, parseMs
);
3620 var getSetMillisecond
= makeGetSet('Milliseconds', false);
3624 addFormatToken('z', 0, 0, 'zoneAbbr');
3625 addFormatToken('zz', 0, 0, 'zoneName');
3629 function getZoneAbbr () {
3630 return this._isUTC
? 'UTC' : '';
3633 function getZoneName () {
3634 return this._isUTC
? 'Coordinated Universal Time' : '';
3637 var proto
= Moment
.prototype;
3640 proto
.calendar
= calendar
$1;
3641 proto
.clone
= clone
;
3643 proto
.endOf
= endOf
;
3644 proto
.format
= format
;
3646 proto
.fromNow
= fromNow
;
3648 proto
.toNow
= toNow
;
3649 proto
.get = stringGet
;
3650 proto
.invalidAt
= invalidAt
;
3651 proto
.isAfter
= isAfter
;
3652 proto
.isBefore
= isBefore
;
3653 proto
.isBetween
= isBetween
;
3654 proto
.isSame
= isSame
;
3655 proto
.isSameOrAfter
= isSameOrAfter
;
3656 proto
.isSameOrBefore
= isSameOrBefore
;
3657 proto
.isValid
= isValid
$1;
3659 proto
.locale
= locale
;
3660 proto
.localeData
= localeData
;
3661 proto
.max
= prototypeMax
;
3662 proto
.min
= prototypeMin
;
3663 proto
.parsingFlags
= parsingFlags
;
3664 proto
.set = stringSet
;
3665 proto
.startOf
= startOf
;
3666 proto
.subtract
= subtract
;
3667 proto
.toArray
= toArray
;
3668 proto
.toObject
= toObject
;
3669 proto
.toDate
= toDate
;
3670 proto
.toISOString
= toISOString
;
3671 proto
.inspect
= inspect
;
3672 proto
.toJSON
= toJSON
;
3673 proto
.toString
= toString
;
3675 proto
.valueOf
= valueOf
;
3676 proto
.creationData
= creationData
;
3679 proto
.year
= getSetYear
;
3680 proto
.isLeapYear
= getIsLeapYear
;
3683 proto
.weekYear
= getSetWeekYear
;
3684 proto
.isoWeekYear
= getSetISOWeekYear
;
3687 proto
.quarter
= proto
.quarters
= getSetQuarter
;
3690 proto
.month
= getSetMonth
;
3691 proto
.daysInMonth
= getDaysInMonth
;
3694 proto
.week
= proto
.weeks
= getSetWeek
;
3695 proto
.isoWeek
= proto
.isoWeeks
= getSetISOWeek
;
3696 proto
.weeksInYear
= getWeeksInYear
;
3697 proto
.isoWeeksInYear
= getISOWeeksInYear
;
3700 proto
.date
= getSetDayOfMonth
;
3701 proto
.day
= proto
.days
= getSetDayOfWeek
;
3702 proto
.weekday
= getSetLocaleDayOfWeek
;
3703 proto
.isoWeekday
= getSetISODayOfWeek
;
3704 proto
.dayOfYear
= getSetDayOfYear
;
3707 proto
.hour
= proto
.hours
= getSetHour
;
3710 proto
.minute
= proto
.minutes
= getSetMinute
;
3713 proto
.second
= proto
.seconds
= getSetSecond
;
3716 proto
.millisecond
= proto
.milliseconds
= getSetMillisecond
;
3719 proto
.utcOffset
= getSetOffset
;
3720 proto
.utc
= setOffsetToUTC
;
3721 proto
.local
= setOffsetToLocal
;
3722 proto
.parseZone
= setOffsetToParsedOffset
;
3723 proto
.hasAlignedHourOffset
= hasAlignedHourOffset
;
3724 proto
.isDST
= isDaylightSavingTime
;
3725 proto
.isLocal
= isLocal
;
3726 proto
.isUtcOffset
= isUtcOffset
;
3727 proto
.isUtc
= isUtc
;
3728 proto
.isUTC
= isUtc
;
3731 proto
.zoneAbbr
= getZoneAbbr
;
3732 proto
.zoneName
= getZoneName
;
3735 proto
.dates
= deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth
);
3736 proto
.months
= deprecate('months accessor is deprecated. Use month instead', getSetMonth
);
3737 proto
.years
= deprecate('years accessor is deprecated. Use year instead', getSetYear
);
3738 proto
.zone
= deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone
);
3739 proto
.isDSTShifted
= deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted
);
3741 function createUnix (input
) {
3742 return createLocal(input
* 1000);
3745 function createInZone () {
3746 return createLocal
.apply(null, arguments
).parseZone();
3749 function preParsePostFormat (string
) {
3753 var proto
$1 = Locale
.prototype;
3755 proto
$1.calendar
= calendar
;
3756 proto
$1.longDateFormat
= longDateFormat
;
3757 proto
$1.invalidDate
= invalidDate
;
3758 proto
$1.ordinal
= ordinal
;
3759 proto
$1.preparse
= preParsePostFormat
;
3760 proto
$1.postformat
= preParsePostFormat
;
3761 proto
$1.relativeTime
= relativeTime
;
3762 proto
$1.pastFuture
= pastFuture
;
3766 proto
$1.months
= localeMonths
;
3767 proto
$1.monthsShort
= localeMonthsShort
;
3768 proto
$1.monthsParse
= localeMonthsParse
;
3769 proto
$1.monthsRegex
= monthsRegex
;
3770 proto
$1.monthsShortRegex
= monthsShortRegex
;
3773 proto
$1.week
= localeWeek
;
3774 proto
$1.firstDayOfYear
= localeFirstDayOfYear
;
3775 proto
$1.firstDayOfWeek
= localeFirstDayOfWeek
;
3778 proto
$1.weekdays
= localeWeekdays
;
3779 proto
$1.weekdaysMin
= localeWeekdaysMin
;
3780 proto
$1.weekdaysShort
= localeWeekdaysShort
;
3781 proto
$1.weekdaysParse
= localeWeekdaysParse
;
3783 proto
$1.weekdaysRegex
= weekdaysRegex
;
3784 proto
$1.weekdaysShortRegex
= weekdaysShortRegex
;
3785 proto
$1.weekdaysMinRegex
= weekdaysMinRegex
;
3788 proto
$1.isPM
= localeIsPM
;
3789 proto
$1.meridiem
= localeMeridiem
;
3791 function get$1 (format
, index
, field
, setter
) {
3792 var locale
= getLocale();
3793 var utc
= createUTC().set(setter
, index
);
3794 return locale
[field
](utc
, format
);
3797 function listMonthsImpl (format
, index
, field
) {
3798 if (isNumber(format
)) {
3803 format
= format
|| '';
3805 if (index
!= null) {
3806 return get$1(format
, index
, field
, 'month');
3811 for (i
= 0; i
< 12; i
++) {
3812 out
[i
] = get$1(format
, i
, field
, 'month');
3825 function listWeekdaysImpl (localeSorted
, format
, index
, field
) {
3826 if (typeof localeSorted
=== 'boolean') {
3827 if (isNumber(format
)) {
3832 format
= format
|| '';
3834 format
= localeSorted
;
3836 localeSorted
= false;
3838 if (isNumber(format
)) {
3843 format
= format
|| '';
3846 var locale
= getLocale(),
3847 shift
= localeSorted
? locale
._week
.dow
: 0;
3849 if (index
!= null) {
3850 return get$1(format
, (index
+ shift
) % 7, field
, 'day');
3855 for (i
= 0; i
< 7; i
++) {
3856 out
[i
] = get$1(format
, (i
+ shift
) % 7, field
, 'day');
3861 function listMonths (format
, index
) {
3862 return listMonthsImpl(format
, index
, 'months');
3865 function listMonthsShort (format
, index
) {
3866 return listMonthsImpl(format
, index
, 'monthsShort');
3869 function listWeekdays (localeSorted
, format
, index
) {
3870 return listWeekdaysImpl(localeSorted
, format
, index
, 'weekdays');
3873 function listWeekdaysShort (localeSorted
, format
, index
) {
3874 return listWeekdaysImpl(localeSorted
, format
, index
, 'weekdaysShort');
3877 function listWeekdaysMin (localeSorted
, format
, index
) {
3878 return listWeekdaysImpl(localeSorted
, format
, index
, 'weekdaysMin');
3881 getSetGlobalLocale('en', {
3882 ordinalParse
: /\d{1,2}(th|st|nd|rd)/,
3883 ordinal : function (number
) {
3884 var b
= number
% 10,
3885 output
= (toInt(number
% 100 / 10) === 1) ? 'th' :
3888 (b
=== 3) ? 'rd' : 'th';
3889 return number
+ output
;
3893 // Side effect imports
3894 hooks
.lang
= deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale
);
3895 hooks
.langData
= deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale
);
3897 var mathAbs
= Math
.abs
;
3900 var data
= this._data
;
3902 this._milliseconds
= mathAbs(this._milliseconds
);
3903 this._days
= mathAbs(this._days
);
3904 this._months
= mathAbs(this._months
);
3906 data
.milliseconds
= mathAbs(data
.milliseconds
);
3907 data
.seconds
= mathAbs(data
.seconds
);
3908 data
.minutes
= mathAbs(data
.minutes
);
3909 data
.hours
= mathAbs(data
.hours
);
3910 data
.months
= mathAbs(data
.months
);
3911 data
.years
= mathAbs(data
.years
);
3916 function addSubtract
$1 (duration
, input
, value
, direction
) {
3917 var other
= createDuration(input
, value
);
3919 duration
._milliseconds
+= direction
* other
._milliseconds
;
3920 duration
._days
+= direction
* other
._days
;
3921 duration
._months
+= direction
* other
._months
;
3923 return duration
._bubble();
3926 // supports only 2.0-style add(1, 's') or add(duration)
3927 function add
$1 (input
, value
) {
3928 return addSubtract
$1(this, input
, value
, 1);
3931 // supports only 2.0-style subtract(1, 's') or subtract(duration)
3932 function subtract
$1 (input
, value
) {
3933 return addSubtract
$1(this, input
, value
, -1);
3936 function absCeil (number
) {
3938 return Math
.floor(number
);
3940 return Math
.ceil(number
);
3944 function bubble () {
3945 var milliseconds
= this._milliseconds
;
3946 var days
= this._days
;
3947 var months
= this._months
;
3948 var data
= this._data
;
3949 var seconds
, minutes
, hours
, years
, monthsFromDays
;
3951 // if we have a mix of positive and negative values, bubble down first
3952 // check: https://github.com/moment/moment/issues/2166
3953 if (!((milliseconds
>= 0 && days
>= 0 && months
>= 0) ||
3954 (milliseconds
<= 0 && days
<= 0 && months
<= 0))) {
3955 milliseconds
+= absCeil(monthsToDays(months
) + days
) * 864e5
;
3960 // The following code bubbles up values, see the tests for
3961 // examples of what that means.
3962 data
.milliseconds
= milliseconds
% 1000;
3964 seconds
= absFloor(milliseconds
/ 1000);
3965 data
.seconds
= seconds
% 60;
3967 minutes
= absFloor(seconds
/ 60);
3968 data
.minutes
= minutes
% 60;
3970 hours
= absFloor(minutes
/ 60);
3971 data
.hours
= hours
% 24;
3973 days
+= absFloor(hours
/ 24);
3975 // convert days to months
3976 monthsFromDays
= absFloor(daysToMonths(days
));
3977 months
+= monthsFromDays
;
3978 days
-= absCeil(monthsToDays(monthsFromDays
));
3980 // 12 months -> 1 year
3981 years
= absFloor(months
/ 12);
3985 data
.months
= months
;
3991 function daysToMonths (days
) {
3992 // 400 years have 146097 days (taking into account leap year rules)
3993 // 400 years have 12 months === 4800
3994 return days
* 4800 / 146097;
3997 function monthsToDays (months
) {
3998 // the reverse of daysToMonths
3999 return months
* 146097 / 4800;
4002 function as (units
) {
4005 var milliseconds
= this._milliseconds
;
4007 units
= normalizeUnits(units
);
4009 if (units
=== 'month' || units
=== 'year') {
4010 days
= this._days
+ milliseconds
/ 864e5
;
4011 months
= this._months
+ daysToMonths(days
);
4012 return units
=== 'month' ? months
: months
/ 12;
4014 // handle milliseconds separately because of floating point math errors (issue #1867)
4015 days
= this._days
+ Math
.round(monthsToDays(this._months
));
4017 case 'week' : return days
/ 7 + milliseconds
/ 6048e5
;
4018 case 'day' : return days
+ milliseconds
/ 864e5
;
4019 case 'hour' : return days
* 24 + milliseconds
/ 36e5
;
4020 case 'minute' : return days
* 1440 + milliseconds
/ 6e4
;
4021 case 'second' : return days
* 86400 + milliseconds
/ 1000;
4022 // Math.floor prevents floating point math errors here
4023 case 'millisecond': return Math
.floor(days
* 864e5
) + milliseconds
;
4024 default: throw new Error('Unknown unit ' + units
);
4029 // TODO: Use this.as('ms')?
4030 function valueOf
$1 () {
4032 this._milliseconds
+
4033 this._days
* 864e5
+
4034 (this._months
% 12) * 2592e6
+
4035 toInt(this._months
/ 12) * 31536e6
4039 function makeAs (alias
) {
4040 return function () {
4041 return this.as(alias
);
4045 var asMilliseconds
= makeAs('ms');
4046 var asSeconds
= makeAs('s');
4047 var asMinutes
= makeAs('m');
4048 var asHours
= makeAs('h');
4049 var asDays
= makeAs('d');
4050 var asWeeks
= makeAs('w');
4051 var asMonths
= makeAs('M');
4052 var asYears
= makeAs('y');
4054 function get$2 (units
) {
4055 units
= normalizeUnits(units
);
4056 return this[units
+ 's']();
4059 function makeGetter(name
) {
4060 return function () {
4061 return this._data
[name
];
4065 var milliseconds
= makeGetter('milliseconds');
4066 var seconds
= makeGetter('seconds');
4067 var minutes
= makeGetter('minutes');
4068 var hours
= makeGetter('hours');
4069 var days
= makeGetter('days');
4070 var months
= makeGetter('months');
4071 var years
= makeGetter('years');
4074 return absFloor(this.days() / 7);
4077 var round
= Math
.round
;
4079 s
: 45, // seconds to minute
4080 m
: 45, // minutes to hour
4081 h
: 22, // hours to day
4082 d
: 26, // days to month
4083 M
: 11 // months to year
4086 // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
4087 function substituteTimeAgo(string
, number
, withoutSuffix
, isFuture
, locale
) {
4088 return locale
.relativeTime(number
|| 1, !!withoutSuffix
, string
, isFuture
);
4091 function relativeTime
$1 (posNegDuration
, withoutSuffix
, locale
) {
4092 var duration
= createDuration(posNegDuration
).abs();
4093 var seconds
= round(duration
.as('s'));
4094 var minutes
= round(duration
.as('m'));
4095 var hours
= round(duration
.as('h'));
4096 var days
= round(duration
.as('d'));
4097 var months
= round(duration
.as('M'));
4098 var years
= round(duration
.as('y'));
4100 var a
= seconds
< thresholds
.s
&& ['s', seconds
] ||
4101 minutes
<= 1 && ['m'] ||
4102 minutes
< thresholds
.m
&& ['mm', minutes
] ||
4103 hours
<= 1 && ['h'] ||
4104 hours
< thresholds
.h
&& ['hh', hours
] ||
4105 days
<= 1 && ['d'] ||
4106 days
< thresholds
.d
&& ['dd', days
] ||
4107 months
<= 1 && ['M'] ||
4108 months
< thresholds
.M
&& ['MM', months
] ||
4109 years
<= 1 && ['y'] || ['yy', years
];
4111 a
[2] = withoutSuffix
;
4112 a
[3] = +posNegDuration
> 0;
4114 return substituteTimeAgo
.apply(null, a
);
4117 // This function allows you to set the rounding function for relative time strings
4118 function getSetRelativeTimeRounding (roundingFunction
) {
4119 if (roundingFunction
=== undefined) {
4122 if (typeof(roundingFunction
) === 'function') {
4123 round
= roundingFunction
;
4129 // This function allows you to set a threshold for relative time strings
4130 function getSetRelativeTimeThreshold (threshold
, limit
) {
4131 if (thresholds
[threshold
] === undefined) {
4134 if (limit
=== undefined) {
4135 return thresholds
[threshold
];
4137 thresholds
[threshold
] = limit
;
4141 function humanize (withSuffix
) {
4142 var locale
= this.localeData();
4143 var output
= relativeTime
$1(this, !withSuffix
, locale
);
4146 output
= locale
.pastFuture(+this, output
);
4149 return locale
.postformat(output
);
4152 var abs
$1 = Math
.abs
;
4154 function toISOString
$1() {
4155 // for ISO strings we do not use the normal bubbling rules:
4156 // * milliseconds bubble up until they become hours
4157 // * days do not bubble at all
4158 // * months bubble up until they become years
4159 // This is because there is no context-free conversion between hours and days
4160 // (think of clock changes)
4161 // and also not between days and months (28-31 days per month)
4162 var seconds
= abs
$1(this._milliseconds
) / 1000;
4163 var days
= abs
$1(this._days
);
4164 var months
= abs
$1(this._months
);
4165 var minutes
, hours
, years
;
4167 // 3600 seconds -> 60 minutes -> 1 hour
4168 minutes
= absFloor(seconds
/ 60);
4169 hours
= absFloor(minutes
/ 60);
4173 // 12 months -> 1 year
4174 years
= absFloor(months
/ 12);
4178 // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
4185 var total
= this.asSeconds();
4188 // this is the same as C#'s (Noda) and python (isodate)...
4189 // but not other JS (goog.date)
4193 return (total
< 0 ? '-' : '') +
4195 (Y
? Y
+ 'Y' : '') +
4196 (M
? M
+ 'M' : '') +
4197 (D
? D
+ 'D' : '') +
4198 ((h
|| m
|| s
) ? 'T' : '') +
4199 (h
? h
+ 'H' : '') +
4200 (m
? m
+ 'M' : '') +
4204 var proto
$2 = Duration
.prototype;
4207 proto
$2.add
= add
$1;
4208 proto
$2.subtract
= subtract
$1;
4210 proto
$2.asMilliseconds
= asMilliseconds
;
4211 proto
$2.asSeconds
= asSeconds
;
4212 proto
$2.asMinutes
= asMinutes
;
4213 proto
$2.asHours
= asHours
;
4214 proto
$2.asDays
= asDays
;
4215 proto
$2.asWeeks
= asWeeks
;
4216 proto
$2.asMonths
= asMonths
;
4217 proto
$2.asYears
= asYears
;
4218 proto
$2.valueOf
= valueOf
$1;
4219 proto
$2._bubble
= bubble
;
4220 proto
$2.get = get$2;
4221 proto
$2.milliseconds
= milliseconds
;
4222 proto
$2.seconds
= seconds
;
4223 proto
$2.minutes
= minutes
;
4224 proto
$2.hours
= hours
;
4225 proto
$2.days
= days
;
4226 proto
$2.weeks
= weeks
;
4227 proto
$2.months
= months
;
4228 proto
$2.years
= years
;
4229 proto
$2.humanize
= humanize
;
4230 proto
$2.toISOString
= toISOString
$1;
4231 proto
$2.toString
= toISOString
$1;
4232 proto
$2.toJSON
= toISOString
$1;
4233 proto
$2.locale
= locale
;
4234 proto
$2.localeData
= localeData
;
4237 proto
$2.toIsoString
= deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString
$1);
4238 proto
$2.lang
= lang
;
4240 // Side effect imports
4244 addFormatToken('X', 0, 0, 'unix');
4245 addFormatToken('x', 0, 0, 'valueOf');
4249 addRegexToken('x', matchSigned
);
4250 addRegexToken('X', matchTimestamp
);
4251 addParseToken('X', function (input
, array
, config
) {
4252 config
._d
= new Date(parseFloat(input
, 10) * 1000);
4254 addParseToken('x', function (input
, array
, config
) {
4255 config
._d
= new Date(toInt(input
));
4258 // Side effect imports
4261 //! version : 2.17.1
4262 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
4266 hooks
.version
= '2.17.1';
4268 setHookCallback(createLocal
);
4274 hooks
.utc
= createUTC
;
4275 hooks
.unix
= createUnix
;
4276 hooks
.months
= listMonths
;
4277 hooks
.isDate
= isDate
;
4278 hooks
.locale
= getSetGlobalLocale
;
4279 hooks
.invalid
= createInvalid
;
4280 hooks
.duration
= createDuration
;
4281 hooks
.isMoment
= isMoment
;
4282 hooks
.weekdays
= listWeekdays
;
4283 hooks
.parseZone
= createInZone
;
4284 hooks
.localeData
= getLocale
;
4285 hooks
.isDuration
= isDuration
;
4286 hooks
.monthsShort
= listMonthsShort
;
4287 hooks
.weekdaysMin
= listWeekdaysMin
;
4288 hooks
.defineLocale
= defineLocale
;
4289 hooks
.updateLocale
= updateLocale
;
4290 hooks
.locales
= listLocales
;
4291 hooks
.weekdaysShort
= listWeekdaysShort
;
4292 hooks
.normalizeUnits
= normalizeUnits
;
4293 hooks
.relativeTimeRounding
= getSetRelativeTimeRounding
;
4294 hooks
.relativeTimeThreshold
= getSetRelativeTimeThreshold
;
4295 hooks
.calendarFormat
= getCalendarFormat
;
4296 hooks
.prototype = proto
;
4298 //! moment.js locale configuration
4299 //! locale : Afrikaans [af]
4300 //! author : Werner Mollentze : https://github.com/wernerm
4302 hooks
.defineLocale('af', {
4303 months
: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
4304 monthsShort
: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
4305 weekdays
: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
4306 weekdaysShort
: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
4307 weekdaysMin
: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
4308 meridiemParse
: /vm|nm/i,
4309 isPM : function (input
) {
4310 return /^nm$/i.test(input
);
4312 meridiem : function (hours
, minutes
, isLower
) {
4314 return isLower
? 'vm' : 'VM';
4316 return isLower
? 'nm' : 'NM';
4324 LLL
: 'D MMMM YYYY HH:mm',
4325 LLLL
: 'dddd, D MMMM YYYY HH:mm'
4328 sameDay
: '[Vandag om] LT',
4329 nextDay
: '[Môre om] LT',
4330 nextWeek
: 'dddd [om] LT',
4331 lastDay
: '[Gister om] LT',
4332 lastWeek
: '[Laas] dddd [om] LT',
4338 s
: '\'n paar sekondes',
4350 ordinalParse
: /\d{1,2}(ste|de)/,
4351 ordinal : function (number
) {
4352 return number
+ ((number
=== 1 || number
=== 8 || number
>= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
4355 dow
: 1, // Maandag is die eerste dag van die week.
4356 doy
: 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
4360 //! moment.js locale configuration
4361 //! locale : Arabic (Algeria) [ar-dz]
4362 //! author : Noureddine LOUAHEDJ : https://github.com/noureddineme
4364 hooks
.defineLocale('ar-dz', {
4365 months
: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
4366 monthsShort
: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
4367 weekdays
: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
4368 weekdaysShort
: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
4369 weekdaysMin
: 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
4370 weekdaysParseExact
: true,
4376 LLL
: 'D MMMM YYYY HH:mm',
4377 LLLL
: 'dddd D MMMM YYYY HH:mm'
4380 sameDay
: '[اليوم على الساعة] LT',
4381 nextDay
: '[غدا على الساعة] LT',
4382 nextWeek
: 'dddd [على الساعة] LT',
4383 lastDay
: '[أمس على الساعة] LT',
4384 lastWeek
: 'dddd [على الساعة] LT',
4403 dow
: 0, // Sunday is the first day of the week.
4404 doy
: 4 // The week that contains Jan 1st is the first week of the year.
4408 //! moment.js locale configuration
4409 //! locale : Arabic (Lybia) [ar-ly]
4410 //! author : Ali Hmer: https://github.com/kikoanis
4424 var pluralForm = function (n
) {
4425 return n
=== 0 ? 0 : n
=== 1 ? 1 : n
=== 2 ? 2 : n
% 100 >= 3 && n
% 100 <= 10 ? 3 : n
% 100 >= 11 ? 4 : 5;
4428 s
: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
4429 m
: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
4430 h
: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
4431 d
: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
4432 M
: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
4433 y
: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
4435 var pluralize = function (u
) {
4436 return function (number
, withoutSuffix
, string
, isFuture
) {
4437 var f
= pluralForm(number
),
4438 str
= plurals
[u
][pluralForm(number
)];
4440 str
= str
[withoutSuffix
? 0 : 1];
4442 return str
.replace(/%d/i, number
);
4460 hooks
.defineLocale('ar-ly', {
4462 monthsShort
: months
$1,
4463 weekdays
: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
4464 weekdaysShort
: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
4465 weekdaysMin
: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
4466 weekdaysParseExact
: true,
4470 L
: 'D/\u200FM/\u200FYYYY',
4472 LLL
: 'D MMMM YYYY HH:mm',
4473 LLLL
: 'dddd D MMMM YYYY HH:mm'
4475 meridiemParse
: /ص|م/,
4476 isPM : function (input
) {
4477 return 'م' === input
;
4479 meridiem : function (hour
, minute
, isLower
) {
4487 sameDay
: '[اليوم عند الساعة] LT',
4488 nextDay
: '[غدًا عند الساعة] LT',
4489 nextWeek
: 'dddd [عند الساعة] LT',
4490 lastDay
: '[أمس عند الساعة] LT',
4491 lastWeek
: 'dddd [عند الساعة] LT',
4499 mm
: pluralize('m'),
4501 hh
: pluralize('h'),
4503 dd
: pluralize('d'),
4505 MM
: pluralize('M'),
4509 preparse: function (string
) {
4510 return string
.replace(/\u200f/g, '').replace(/،/g, ',');
4512 postformat: function (string
) {
4513 return string
.replace(/\d/g, function (match
) {
4514 return symbolMap
[match
];
4515 }).replace(/,/g
, '،');
4518 dow
: 6, // Saturday is the first day of the week.
4519 doy
: 12 // The week that contains Jan 1st is the first week of the year.
4523 //! moment.js locale configuration
4524 //! locale : Arabic (Morocco) [ar-ma]
4525 //! author : ElFadili Yassine : https://github.com/ElFadiliY
4526 //! author : Abdel Said : https://github.com/abdelsaid
4528 hooks
.defineLocale('ar-ma', {
4529 months
: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
4530 monthsShort
: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
4531 weekdays
: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
4532 weekdaysShort
: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
4533 weekdaysMin
: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
4534 weekdaysParseExact
: true,
4540 LLL
: 'D MMMM YYYY HH:mm',
4541 LLLL
: 'dddd D MMMM YYYY HH:mm'
4544 sameDay
: '[اليوم على الساعة] LT',
4545 nextDay
: '[غدا على الساعة] LT',
4546 nextWeek
: 'dddd [على الساعة] LT',
4547 lastDay
: '[أمس على الساعة] LT',
4548 lastWeek
: 'dddd [على الساعة] LT',
4567 dow
: 6, // Saturday is the first day of the week.
4568 doy
: 12 // The week that contains Jan 1st is the first week of the year.
4572 //! moment.js locale configuration
4573 //! locale : Arabic (Saudi Arabia) [ar-sa]
4574 //! author : Suhail Alkowaileet : https://github.com/xsoh
4601 hooks
.defineLocale('ar-sa', {
4602 months
: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
4603 monthsShort
: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
4604 weekdays
: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
4605 weekdaysShort
: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
4606 weekdaysMin
: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
4607 weekdaysParseExact
: true,
4613 LLL
: 'D MMMM YYYY HH:mm',
4614 LLLL
: 'dddd D MMMM YYYY HH:mm'
4616 meridiemParse
: /ص|م/,
4617 isPM : function (input
) {
4618 return 'م' === input
;
4620 meridiem : function (hour
, minute
, isLower
) {
4628 sameDay
: '[اليوم على الساعة] LT',
4629 nextDay
: '[غدا على الساعة] LT',
4630 nextWeek
: 'dddd [على الساعة] LT',
4631 lastDay
: '[أمس على الساعة] LT',
4632 lastWeek
: 'dddd [على الساعة] LT',
4650 preparse: function (string
) {
4651 return string
.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match
) {
4652 return numberMap
[match
];
4653 }).replace(/،/g, ',');
4655 postformat: function (string
) {
4656 return string
.replace(/\d/g, function (match
) {
4657 return symbolMap
$1[match
];
4658 }).replace(/,/g
, '،');
4661 dow
: 0, // Sunday is the first day of the week.
4662 doy
: 6 // The week that contains Jan 1st is the first week of the year.
4666 //! moment.js locale configuration
4667 //! locale : Arabic (Tunisia) [ar-tn]
4668 //! author : Nader Toukabri : https://github.com/naderio
4670 hooks
.defineLocale('ar-tn', {
4671 months
: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
4672 monthsShort
: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
4673 weekdays
: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
4674 weekdaysShort
: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
4675 weekdaysMin
: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
4676 weekdaysParseExact
: true,
4682 LLL
: 'D MMMM YYYY HH:mm',
4683 LLLL
: 'dddd D MMMM YYYY HH:mm'
4686 sameDay
: '[اليوم على الساعة] LT',
4687 nextDay
: '[غدا على الساعة] LT',
4688 nextWeek
: 'dddd [على الساعة] LT',
4689 lastDay
: '[أمس على الساعة] LT',
4690 lastWeek
: 'dddd [على الساعة] LT',
4709 dow
: 1, // Monday is the first day of the week.
4710 doy
: 4 // The week that contains Jan 4th is the first week of the year.
4714 //! moment.js locale configuration
4715 //! locale : Arabic [ar]
4716 //! author : Abdel Said: https://github.com/abdelsaid
4717 //! author : Ahmed Elkhatib
4718 //! author : forabi https://github.com/forabi
4744 var pluralForm
$1 = function (n
) {
4745 return n
=== 0 ? 0 : n
=== 1 ? 1 : n
=== 2 ? 2 : n
% 100 >= 3 && n
% 100 <= 10 ? 3 : n
% 100 >= 11 ? 4 : 5;
4748 s
: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
4749 m
: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
4750 h
: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
4751 d
: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
4752 M
: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
4753 y
: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
4755 var pluralize
$1 = function (u
) {
4756 return function (number
, withoutSuffix
, string
, isFuture
) {
4757 var f
= pluralForm
$1(number
),
4758 str
= plurals
$1[u
][pluralForm
$1(number
)];
4760 str
= str
[withoutSuffix
? 0 : 1];
4762 return str
.replace(/%d/i, number
);
4766 'كانون الثاني يناير',
4775 'تشرين الأول أكتوبر',
4776 'تشرين الثاني نوفمبر',
4777 'كانون الأول ديسمبر'
4780 hooks
.defineLocale('ar', {
4782 monthsShort
: months
$2,
4783 weekdays
: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
4784 weekdaysShort
: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
4785 weekdaysMin
: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
4786 weekdaysParseExact
: true,
4790 L
: 'D/\u200FM/\u200FYYYY',
4792 LLL
: 'D MMMM YYYY HH:mm',
4793 LLLL
: 'dddd D MMMM YYYY HH:mm'
4795 meridiemParse
: /ص|م/,
4796 isPM : function (input
) {
4797 return 'م' === input
;
4799 meridiem : function (hour
, minute
, isLower
) {
4807 sameDay
: '[اليوم عند الساعة] LT',
4808 nextDay
: '[غدًا عند الساعة] LT',
4809 nextWeek
: 'dddd [عند الساعة] LT',
4810 lastDay
: '[أمس عند الساعة] LT',
4811 lastWeek
: 'dddd [عند الساعة] LT',
4817 s
: pluralize
$1('s'),
4818 m
: pluralize
$1('m'),
4819 mm
: pluralize
$1('m'),
4820 h
: pluralize
$1('h'),
4821 hh
: pluralize
$1('h'),
4822 d
: pluralize
$1('d'),
4823 dd
: pluralize
$1('d'),
4824 M
: pluralize
$1('M'),
4825 MM
: pluralize
$1('M'),
4826 y
: pluralize
$1('y'),
4827 yy
: pluralize
$1('y')
4829 preparse: function (string
) {
4830 return string
.replace(/\u200f/g, '').replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match
) {
4831 return numberMap
$1[match
];
4832 }).replace(/،/g, ',');
4834 postformat: function (string
) {
4835 return string
.replace(/\d/g, function (match
) {
4836 return symbolMap
$2[match
];
4837 }).replace(/,/g
, '،');
4840 dow
: 6, // Saturday is the first day of the week.
4841 doy
: 12 // The week that contains Jan 1st is the first week of the year.
4845 //! moment.js locale configuration
4846 //! locale : Azerbaijani [az]
4847 //! author : topchiyev : https://github.com/topchiyev
4870 hooks
.defineLocale('az', {
4871 months
: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
4872 monthsShort
: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
4873 weekdays
: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
4874 weekdaysShort
: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
4875 weekdaysMin
: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
4876 weekdaysParseExact
: true,
4882 LLL
: 'D MMMM YYYY HH:mm',
4883 LLLL
: 'dddd, D MMMM YYYY HH:mm'
4886 sameDay
: '[bugün saat] LT',
4887 nextDay
: '[sabah saat] LT',
4888 nextWeek
: '[gələn həftə] dddd [saat] LT',
4889 lastDay
: '[dünən] LT',
4890 lastWeek
: '[keçən həftə] dddd [saat] LT',
4894 future
: '%s sonra',
4896 s
: 'birneçə saniyyə',
4908 meridiemParse
: /gecə|səhər|gündüz|axşam/,
4909 isPM : function (input
) {
4910 return /^(gündüz|axşam)$/.test(input
);
4912 meridiem : function (hour
, minute
, isLower
) {
4915 } else if (hour
< 12) {
4917 } else if (hour
< 17) {
4923 ordinalParse
: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
4924 ordinal : function (number
) {
4925 if (number
=== 0) { // special case for zero
4926 return number
+ '-ıncı';
4928 var a
= number
% 10,
4929 b
= number
% 100 - a
,
4930 c
= number
>= 100 ? 100 : null;
4931 return number
+ (suffixes
[a
] || suffixes
[b
] || suffixes
[c
]);
4934 dow
: 1, // Monday is the first day of the week.
4935 doy
: 7 // The week that contains Jan 1st is the first week of the year.
4939 //! moment.js locale configuration
4940 //! locale : Belarusian [be]
4941 //! author : Dmitry Demidov : https://github.com/demidov91
4942 //! author: Praleska: http://praleska.pro/
4943 //! Author : Menelion Elensúle : https://github.com/Oire
4945 function plural(word
, num
) {
4946 var forms
= word
.split('_');
4947 return num
% 10 === 1 && num
% 100 !== 11 ? forms
[0] : (num
% 10 >= 2 && num
% 10 <= 4 && (num
% 100 < 10 || num
% 100 >= 20) ? forms
[1] : forms
[2]);
4949 function relativeTimeWithPlural(number
, withoutSuffix
, key
) {
4951 'mm': withoutSuffix
? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
4952 'hh': withoutSuffix
? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
4953 'dd': 'дзень_дні_дзён',
4954 'MM': 'месяц_месяцы_месяцаў',
4955 'yy': 'год_гады_гадоў'
4958 return withoutSuffix
? 'хвіліна' : 'хвіліну';
4960 else if (key
=== 'h') {
4961 return withoutSuffix
? 'гадзіна' : 'гадзіну';
4964 return number
+ ' ' + plural(format
[key
], +number
);
4968 hooks
.defineLocale('be', {
4970 format
: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
4971 standalone
: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
4973 monthsShort
: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
4975 format
: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
4976 standalone
: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
4977 isFormat
: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/
4979 weekdaysShort
: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
4980 weekdaysMin
: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
4985 LL
: 'D MMMM YYYY г.',
4986 LLL
: 'D MMMM YYYY г., HH:mm',
4987 LLLL
: 'dddd, D MMMM YYYY г., HH:mm'
4990 sameDay
: '[Сёння ў] LT',
4991 nextDay
: '[Заўтра ў] LT',
4992 lastDay
: '[Учора ў] LT',
4993 nextWeek: function () {
4994 return '[У] dddd [ў] LT';
4996 lastWeek: function () {
4997 switch (this.day()) {
5002 return '[У мінулую] dddd [ў] LT';
5006 return '[У мінулы] dddd [ў] LT';
5014 s
: 'некалькі секунд',
5015 m
: relativeTimeWithPlural
,
5016 mm
: relativeTimeWithPlural
,
5017 h
: relativeTimeWithPlural
,
5018 hh
: relativeTimeWithPlural
,
5020 dd
: relativeTimeWithPlural
,
5022 MM
: relativeTimeWithPlural
,
5024 yy
: relativeTimeWithPlural
5026 meridiemParse
: /ночы|раніцы|дня|вечара/,
5027 isPM : function (input
) {
5028 return /^(дня|вечара)$/.test(input
);
5030 meridiem : function (hour
, minute
, isLower
) {
5033 } else if (hour
< 12) {
5035 } else if (hour
< 17) {
5041 ordinalParse
: /\d{1,2}-(і|ы|га)/,
5042 ordinal: function (number
, period
) {
5049 return (number
% 10 === 2 || number
% 10 === 3) && (number
% 100 !== 12 && number
% 100 !== 13) ? number
+ '-і' : number
+ '-ы';
5051 return number
+ '-га';
5057 dow
: 1, // Monday is the first day of the week.
5058 doy
: 7 // The week that contains Jan 1st is the first week of the year.
5062 //! moment.js locale configuration
5063 //! locale : Bulgarian [bg]
5064 //! author : Krasen Borisov : https://github.com/kraz
5066 hooks
.defineLocale('bg', {
5067 months
: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
5068 monthsShort
: 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
5069 weekdays
: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
5070 weekdaysShort
: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
5071 weekdaysMin
: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
5077 LLL
: 'D MMMM YYYY H:mm',
5078 LLLL
: 'dddd, D MMMM YYYY H:mm'
5081 sameDay
: '[Днес в] LT',
5082 nextDay
: '[Утре в] LT',
5083 nextWeek
: 'dddd [в] LT',
5084 lastDay
: '[Вчера в] LT',
5085 lastWeek : function () {
5086 switch (this.day()) {
5090 return '[В изминалата] dddd [в] LT';
5095 return '[В изминалия] dddd [в] LT';
5103 s
: 'няколко секунди',
5115 ordinalParse
: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
5116 ordinal : function (number
) {
5117 var lastDigit
= number
% 10,
5118 last2Digits
= number
% 100;
5120 return number
+ '-ев';
5121 } else if (last2Digits
=== 0) {
5122 return number
+ '-ен';
5123 } else if (last2Digits
> 10 && last2Digits
< 20) {
5124 return number
+ '-ти';
5125 } else if (lastDigit
=== 1) {
5126 return number
+ '-ви';
5127 } else if (lastDigit
=== 2) {
5128 return number
+ '-ри';
5129 } else if (lastDigit
=== 7 || lastDigit
=== 8) {
5130 return number
+ '-ми';
5132 return number
+ '-ти';
5136 dow
: 1, // Monday is the first day of the week.
5137 doy
: 7 // The week that contains Jan 1st is the first week of the year.
5141 //! moment.js locale configuration
5142 //! locale : Bengali [bn]
5143 //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
5170 hooks
.defineLocale('bn', {
5171 months
: 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
5172 monthsShort
: 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
5173 weekdays
: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
5174 weekdaysShort
: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
5175 weekdaysMin
: 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),
5178 LTS
: 'A h:mm:ss সময়',
5181 LLL
: 'D MMMM YYYY, A h:mm সময়',
5182 LLLL
: 'dddd, D MMMM YYYY, A h:mm সময়'
5185 sameDay
: '[আজ] LT',
5186 nextDay
: '[আগামীকাল] LT',
5187 nextWeek
: 'dddd, LT',
5188 lastDay
: '[গতকাল] LT',
5189 lastWeek
: '[গত] dddd, LT',
5207 preparse: function (string
) {
5208 return string
.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match
) {
5209 return numberMap
$2[match
];
5212 postformat: function (string
) {
5213 return string
.replace(/\d/g, function (match
) {
5214 return symbolMap
$3[match
];
5217 meridiemParse
: /রাত|সকাল|দুপুর|বিকাল|রাত/,
5218 meridiemHour : function (hour
, meridiem
) {
5222 if ((meridiem
=== 'রাত' && hour
>= 4) ||
5223 (meridiem
=== 'দুপুর' && hour
< 5) ||
5224 meridiem
=== 'বিকাল') {
5230 meridiem : function (hour
, minute
, isLower
) {
5233 } else if (hour
< 10) {
5235 } else if (hour
< 17) {
5237 } else if (hour
< 20) {
5244 dow
: 0, // Sunday is the first day of the week.
5245 doy
: 6 // The week that contains Jan 1st is the first week of the year.
5249 //! moment.js locale configuration
5250 //! locale : Tibetan [bo]
5251 //! author : Thupten N. Chakrishar : https://github.com/vajradog
5278 hooks
.defineLocale('bo', {
5279 months
: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
5280 monthsShort
: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
5281 weekdays
: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
5282 weekdaysShort
: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
5283 weekdaysMin
: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
5289 LLL
: 'D MMMM YYYY, A h:mm',
5290 LLLL
: 'dddd, D MMMM YYYY, A h:mm'
5293 sameDay
: '[དི་རིང] LT',
5294 nextDay
: '[སང་ཉིན] LT',
5295 nextWeek
: '[བདུན་ཕྲག་རྗེས་མ], LT',
5296 lastDay
: '[ཁ་སང] LT',
5297 lastWeek
: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
5315 preparse: function (string
) {
5316 return string
.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match
) {
5317 return numberMap
$3[match
];
5320 postformat: function (string
) {
5321 return string
.replace(/\d/g, function (match
) {
5322 return symbolMap
$4[match
];
5325 meridiemParse
: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
5326 meridiemHour : function (hour
, meridiem
) {
5330 if ((meridiem
=== 'མཚན་མོ' && hour
>= 4) ||
5331 (meridiem
=== 'ཉིན་གུང' && hour
< 5) ||
5332 meridiem
=== 'དགོང་དག') {
5338 meridiem : function (hour
, minute
, isLower
) {
5341 } else if (hour
< 10) {
5343 } else if (hour
< 17) {
5345 } else if (hour
< 20) {
5352 dow
: 0, // Sunday is the first day of the week.
5353 doy
: 6 // The week that contains Jan 1st is the first week of the year.
5357 //! moment.js locale configuration
5358 //! locale : Breton [br]
5359 //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
5361 function relativeTimeWithMutation(number
, withoutSuffix
, key
) {
5367 return number
+ ' ' + mutation(format
[key
], number
);
5369 function specialMutationForYears(number
) {
5370 switch (lastNumber(number
)) {
5376 return number
+ ' bloaz';
5378 return number
+ ' vloaz';
5381 function lastNumber(number
) {
5383 return lastNumber(number
% 10);
5387 function mutation(text
, number
) {
5389 return softMutation(text
);
5393 function softMutation(text
) {
5394 var mutationTable
= {
5399 if (mutationTable
[text
.charAt(0)] === undefined) {
5402 return mutationTable
[text
.charAt(0)] + text
.substring(1);
5405 hooks
.defineLocale('br', {
5406 months
: 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
5407 monthsShort
: 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
5408 weekdays
: 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
5409 weekdaysShort
: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
5410 weekdaysMin
: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
5411 weekdaysParseExact
: true,
5414 LTS
: 'h[e]mm:ss A',
5416 LL
: 'D [a viz] MMMM YYYY',
5417 LLL
: 'D [a viz] MMMM YYYY h[e]mm A',
5418 LLLL
: 'dddd, D [a viz] MMMM YYYY h[e]mm A'
5421 sameDay
: '[Hiziv da] LT',
5422 nextDay
: '[Warc\'hoazh da] LT',
5423 nextWeek
: 'dddd [da] LT',
5424 lastDay
: '[Dec\'h da] LT',
5425 lastWeek
: 'dddd [paset da] LT',
5429 future
: 'a-benn %s',
5431 s
: 'un nebeud segondennoù',
5433 mm
: relativeTimeWithMutation
,
5437 dd
: relativeTimeWithMutation
,
5439 MM
: relativeTimeWithMutation
,
5441 yy
: specialMutationForYears
5443 ordinalParse
: /\d{1,2}(añ|vet)/,
5444 ordinal : function (number
) {
5445 var output
= (number
=== 1) ? 'añ' : 'vet';
5446 return number
+ output
;
5449 dow
: 1, // Monday is the first day of the week.
5450 doy
: 4 // The week that contains Jan 4th is the first week of the year.
5454 //! moment.js locale configuration
5455 //! locale : Bosnian [bs]
5456 //! author : Nedim Cholich : https://github.com/frontyard
5457 //! based on (hr) translation by Bojan Marković
5459 function translate(number
, withoutSuffix
, key
) {
5460 var result
= number
+ ' ';
5463 return withoutSuffix
? 'jedna minuta' : 'jedne minute';
5467 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
5474 return withoutSuffix
? 'jedan sat' : 'jednog sata';
5478 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
5494 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
5495 result
+= 'mjeseca';
5497 result
+= 'mjeseci';
5503 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
5512 hooks
.defineLocale('bs', {
5513 months
: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
5514 monthsShort
: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
5515 monthsParseExact
: true,
5516 weekdays
: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
5517 weekdaysShort
: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
5518 weekdaysMin
: 'ne_po_ut_sr_če_pe_su'.split('_'),
5519 weekdaysParseExact
: true,
5524 LL
: 'D. MMMM YYYY',
5525 LLL
: 'D. MMMM YYYY H:mm',
5526 LLLL
: 'dddd, D. MMMM YYYY H:mm'
5529 sameDay
: '[danas u] LT',
5530 nextDay
: '[sutra u] LT',
5531 nextWeek : function () {
5532 switch (this.day()) {
5534 return '[u] [nedjelju] [u] LT';
5536 return '[u] [srijedu] [u] LT';
5538 return '[u] [subotu] [u] LT';
5543 return '[u] dddd [u] LT';
5546 lastDay
: '[jučer u] LT',
5547 lastWeek : function () {
5548 switch (this.day()) {
5551 return '[prošlu] dddd [u] LT';
5553 return '[prošle] [subote] [u] LT';
5558 return '[prošli] dddd [u] LT';
5578 ordinalParse
: /\d{1,2}\./,
5581 dow
: 1, // Monday is the first day of the week.
5582 doy
: 7 // The week that contains Jan 1st is the first week of the year.
5586 //! moment.js locale configuration
5587 //! locale : Catalan [ca]
5588 //! author : Juan G. Hurtado : https://github.com/juanghurtado
5590 hooks
.defineLocale('ca', {
5591 months
: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
5592 monthsShort
: 'gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.'.split('_'),
5593 monthsParseExact
: true,
5594 weekdays
: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
5595 weekdaysShort
: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
5596 weekdaysMin
: 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'),
5597 weekdaysParseExact
: true,
5603 LLL
: 'D MMMM YYYY H:mm',
5604 LLLL
: 'dddd D MMMM YYYY H:mm'
5607 sameDay : function () {
5608 return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
5610 nextDay : function () {
5611 return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
5613 nextWeek : function () {
5614 return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
5616 lastDay : function () {
5617 return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
5619 lastWeek : function () {
5620 return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
5625 future
: 'd\'aquí %s',
5639 ordinalParse
: /\d{1,2}(r|n|t|è|a)/,
5640 ordinal : function (number
, period
) {
5641 var output
= (number
=== 1) ? 'r' :
5642 (number
=== 2) ? 'n' :
5643 (number
=== 3) ? 'r' :
5644 (number
=== 4) ? 't' : 'è';
5645 if (period
=== 'w' || period
=== 'W') {
5648 return number
+ output
;
5651 dow
: 1, // Monday is the first day of the week.
5652 doy
: 4 // The week that contains Jan 4th is the first week of the year.
5656 //! moment.js locale configuration
5657 //! locale : Czech [cs]
5658 //! author : petrbela : https://github.com/petrbela
5660 var months
$3 = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_');
5661 var monthsShort
= 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
5662 function plural
$1(n
) {
5663 return (n
> 1) && (n
< 5) && (~~(n
/ 10) !== 1);
5665 function translate
$1(number
, withoutSuffix
, key
, isFuture
) {
5666 var result
= number
+ ' ';
5668 case 's': // a few seconds / in a few seconds / a few seconds ago
5669 return (withoutSuffix
|| isFuture
) ? 'pár sekund' : 'pár sekundami';
5670 case 'm': // a minute / in a minute / a minute ago
5671 return withoutSuffix
? 'minuta' : (isFuture
? 'minutu' : 'minutou');
5672 case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
5673 if (withoutSuffix
|| isFuture
) {
5674 return result
+ (plural
$1(number
) ? 'minuty' : 'minut');
5676 return result
+ 'minutami';
5679 case 'h': // an hour / in an hour / an hour ago
5680 return withoutSuffix
? 'hodina' : (isFuture
? 'hodinu' : 'hodinou');
5681 case 'hh': // 9 hours / in 9 hours / 9 hours ago
5682 if (withoutSuffix
|| isFuture
) {
5683 return result
+ (plural
$1(number
) ? 'hodiny' : 'hodin');
5685 return result
+ 'hodinami';
5688 case 'd': // a day / in a day / a day ago
5689 return (withoutSuffix
|| isFuture
) ? 'den' : 'dnem';
5690 case 'dd': // 9 days / in 9 days / 9 days ago
5691 if (withoutSuffix
|| isFuture
) {
5692 return result
+ (plural
$1(number
) ? 'dny' : 'dní');
5694 return result
+ 'dny';
5697 case 'M': // a month / in a month / a month ago
5698 return (withoutSuffix
|| isFuture
) ? 'měsíc' : 'měsícem';
5699 case 'MM': // 9 months / in 9 months / 9 months ago
5700 if (withoutSuffix
|| isFuture
) {
5701 return result
+ (plural
$1(number
) ? 'měsíce' : 'měsíců');
5703 return result
+ 'měsíci';
5706 case 'y': // a year / in a year / a year ago
5707 return (withoutSuffix
|| isFuture
) ? 'rok' : 'rokem';
5708 case 'yy': // 9 years / in 9 years / 9 years ago
5709 if (withoutSuffix
|| isFuture
) {
5710 return result
+ (plural
$1(number
) ? 'roky' : 'let');
5712 return result
+ 'lety';
5718 hooks
.defineLocale('cs', {
5720 monthsShort
: monthsShort
,
5721 monthsParse
: (function (months
, monthsShort
) {
5722 var i
, _monthsParse
= [];
5723 for (i
= 0; i
< 12; i
++) {
5724 // use custom parser to solve problem with July (červenec)
5725 _monthsParse
[i
] = new RegExp('^' + months
[i
] + '$|^' + monthsShort
[i
] + '$', 'i');
5727 return _monthsParse
;
5728 }(months
$3, monthsShort
)),
5729 shortMonthsParse
: (function (monthsShort
) {
5730 var i
, _shortMonthsParse
= [];
5731 for (i
= 0; i
< 12; i
++) {
5732 _shortMonthsParse
[i
] = new RegExp('^' + monthsShort
[i
] + '$', 'i');
5734 return _shortMonthsParse
;
5736 longMonthsParse
: (function (months
) {
5737 var i
, _longMonthsParse
= [];
5738 for (i
= 0; i
< 12; i
++) {
5739 _longMonthsParse
[i
] = new RegExp('^' + months
[i
] + '$', 'i');
5741 return _longMonthsParse
;
5743 weekdays
: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
5744 weekdaysShort
: 'ne_po_út_st_čt_pá_so'.split('_'),
5745 weekdaysMin
: 'ne_po_út_st_čt_pá_so'.split('_'),
5750 LL
: 'D. MMMM YYYY',
5751 LLL
: 'D. MMMM YYYY H:mm',
5752 LLLL
: 'dddd D. MMMM YYYY H:mm',
5756 sameDay
: '[dnes v] LT',
5757 nextDay
: '[zítra v] LT',
5758 nextWeek: function () {
5759 switch (this.day()) {
5761 return '[v neděli v] LT';
5764 return '[v] dddd [v] LT';
5766 return '[ve středu v] LT';
5768 return '[ve čtvrtek v] LT';
5770 return '[v pátek v] LT';
5772 return '[v sobotu v] LT';
5775 lastDay
: '[včera v] LT',
5776 lastWeek: function () {
5777 switch (this.day()) {
5779 return '[minulou neděli v] LT';
5782 return '[minulé] dddd [v] LT';
5784 return '[minulou středu v] LT';
5787 return '[minulý] dddd [v] LT';
5789 return '[minulou sobotu v] LT';
5809 ordinalParse
: /\d{1,2}\./,
5812 dow
: 1, // Monday is the first day of the week.
5813 doy
: 4 // The week that contains Jan 4th is the first week of the year.
5817 //! moment.js locale configuration
5818 //! locale : Chuvash [cv]
5819 //! author : Anatoly Mironov : https://github.com/mirontoli
5821 hooks
.defineLocale('cv', {
5822 months
: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
5823 monthsShort
: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
5824 weekdays
: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
5825 weekdaysShort
: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
5826 weekdaysMin
: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
5831 LL
: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
5832 LLL
: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
5833 LLLL
: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
5836 sameDay
: '[Паян] LT [сехетре]',
5837 nextDay
: '[Ыран] LT [сехетре]',
5838 lastDay
: '[Ӗнер] LT [сехетре]',
5839 nextWeek
: '[Ҫитес] dddd LT [сехетре]',
5840 lastWeek
: '[Иртнӗ] dddd LT [сехетре]',
5844 future : function (output
) {
5845 var affix
= /сехет$/i.exec(output
) ? 'рен' : /ҫул$/i.exec(output
) ? 'тан' : 'ран';
5846 return output
+ affix
;
5849 s
: 'пӗр-ик ҫеккунт',
5861 ordinalParse
: /\d{1,2}-мӗш/,
5864 dow
: 1, // Monday is the first day of the week.
5865 doy
: 7 // The week that contains Jan 1st is the first week of the year.
5869 //! moment.js locale configuration
5870 //! locale : Welsh [cy]
5871 //! author : Robert Allen : https://github.com/robgallen
5872 //! author : https://github.com/ryangreaves
5874 hooks
.defineLocale('cy', {
5875 months
: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
5876 monthsShort
: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
5877 weekdays
: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
5878 weekdaysShort
: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
5879 weekdaysMin
: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
5880 weekdaysParseExact
: true,
5881 // time formats are the same as en-gb
5887 LLL
: 'D MMMM YYYY HH:mm',
5888 LLLL
: 'dddd, D MMMM YYYY HH:mm'
5891 sameDay
: '[Heddiw am] LT',
5892 nextDay
: '[Yfory am] LT',
5893 nextWeek
: 'dddd [am] LT',
5894 lastDay
: '[Ddoe am] LT',
5895 lastWeek
: 'dddd [diwethaf am] LT',
5901 s
: 'ychydig eiliadau',
5913 ordinalParse
: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
5914 // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
5915 ordinal: function (number
) {
5919 '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
5920 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
5923 if (b
=== 40 || b
=== 50 || b
=== 60 || b
=== 80 || b
=== 100) {
5924 output
= 'fed'; // not 30ain, 70ain or 90ain
5931 return number
+ output
;
5934 dow
: 1, // Monday is the first day of the week.
5935 doy
: 4 // The week that contains Jan 4th is the first week of the year.
5939 //! moment.js locale configuration
5940 //! locale : Danish [da]
5941 //! author : Ulrik Nielsen : https://github.com/mrbase
5943 hooks
.defineLocale('da', {
5944 months
: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
5945 monthsShort
: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
5946 weekdays
: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
5947 weekdaysShort
: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
5948 weekdaysMin
: 'sø_ma_ti_on_to_fr_lø'.split('_'),
5953 LL
: 'D. MMMM YYYY',
5954 LLL
: 'D. MMMM YYYY HH:mm',
5955 LLLL
: 'dddd [d.] D. MMMM YYYY HH:mm'
5958 sameDay
: '[I dag kl.] LT',
5959 nextDay
: '[I morgen kl.] LT',
5960 nextWeek
: 'dddd [kl.] LT',
5961 lastDay
: '[I går kl.] LT',
5962 lastWeek
: '[sidste] dddd [kl] LT',
5980 ordinalParse
: /\d{1,2}\./,
5983 dow
: 1, // Monday is the first day of the week.
5984 doy
: 4 // The week that contains Jan 4th is the first week of the year.
5988 //! moment.js locale configuration
5989 //! locale : German (Austria) [de-at]
5990 //! author : lluchs : https://github.com/lluchs
5991 //! author: Menelion Elensúle: https://github.com/Oire
5992 //! author : Martin Groller : https://github.com/MadMG
5993 //! author : Mikolaj Dadela : https://github.com/mik01aj
5995 function processRelativeTime(number
, withoutSuffix
, key
, isFuture
) {
5997 'm': ['eine Minute', 'einer Minute'],
5998 'h': ['eine Stunde', 'einer Stunde'],
5999 'd': ['ein Tag', 'einem Tag'],
6000 'dd': [number
+ ' Tage', number
+ ' Tagen'],
6001 'M': ['ein Monat', 'einem Monat'],
6002 'MM': [number
+ ' Monate', number
+ ' Monaten'],
6003 'y': ['ein Jahr', 'einem Jahr'],
6004 'yy': [number
+ ' Jahre', number
+ ' Jahren']
6006 return withoutSuffix
? format
[key
][0] : format
[key
][1];
6009 hooks
.defineLocale('de-at', {
6010 months
: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
6011 monthsShort
: 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
6012 monthsParseExact
: true,
6013 weekdays
: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
6014 weekdaysShort
: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
6015 weekdaysMin
: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
6016 weekdaysParseExact
: true,
6021 LL
: 'D. MMMM YYYY',
6022 LLL
: 'D. MMMM YYYY HH:mm',
6023 LLLL
: 'dddd, D. MMMM YYYY HH:mm'
6026 sameDay
: '[heute um] LT [Uhr]',
6028 nextDay
: '[morgen um] LT [Uhr]',
6029 nextWeek
: 'dddd [um] LT [Uhr]',
6030 lastDay
: '[gestern um] LT [Uhr]',
6031 lastWeek
: '[letzten] dddd [um] LT [Uhr]'
6036 s
: 'ein paar Sekunden',
6037 m
: processRelativeTime
,
6039 h
: processRelativeTime
,
6041 d
: processRelativeTime
,
6042 dd
: processRelativeTime
,
6043 M
: processRelativeTime
,
6044 MM
: processRelativeTime
,
6045 y
: processRelativeTime
,
6046 yy
: processRelativeTime
6048 ordinalParse
: /\d{1,2}\./,
6051 dow
: 1, // Monday is the first day of the week.
6052 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6056 //! moment.js locale configuration
6057 //! locale : German [de]
6058 //! author : lluchs : https://github.com/lluchs
6059 //! author: Menelion Elensúle: https://github.com/Oire
6060 //! author : Mikolaj Dadela : https://github.com/mik01aj
6062 function processRelativeTime
$1(number
, withoutSuffix
, key
, isFuture
) {
6064 'm': ['eine Minute', 'einer Minute'],
6065 'h': ['eine Stunde', 'einer Stunde'],
6066 'd': ['ein Tag', 'einem Tag'],
6067 'dd': [number
+ ' Tage', number
+ ' Tagen'],
6068 'M': ['ein Monat', 'einem Monat'],
6069 'MM': [number
+ ' Monate', number
+ ' Monaten'],
6070 'y': ['ein Jahr', 'einem Jahr'],
6071 'yy': [number
+ ' Jahre', number
+ ' Jahren']
6073 return withoutSuffix
? format
[key
][0] : format
[key
][1];
6076 hooks
.defineLocale('de', {
6077 months
: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
6078 monthsShort
: 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
6079 monthsParseExact
: true,
6080 weekdays
: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
6081 weekdaysShort
: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
6082 weekdaysMin
: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
6083 weekdaysParseExact
: true,
6088 LL
: 'D. MMMM YYYY',
6089 LLL
: 'D. MMMM YYYY HH:mm',
6090 LLLL
: 'dddd, D. MMMM YYYY HH:mm'
6093 sameDay
: '[heute um] LT [Uhr]',
6095 nextDay
: '[morgen um] LT [Uhr]',
6096 nextWeek
: 'dddd [um] LT [Uhr]',
6097 lastDay
: '[gestern um] LT [Uhr]',
6098 lastWeek
: '[letzten] dddd [um] LT [Uhr]'
6103 s
: 'ein paar Sekunden',
6104 m
: processRelativeTime
$1,
6106 h
: processRelativeTime
$1,
6108 d
: processRelativeTime
$1,
6109 dd
: processRelativeTime
$1,
6110 M
: processRelativeTime
$1,
6111 MM
: processRelativeTime
$1,
6112 y
: processRelativeTime
$1,
6113 yy
: processRelativeTime
$1
6115 ordinalParse
: /\d{1,2}\./,
6118 dow
: 1, // Monday is the first day of the week.
6119 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6123 //! moment.js locale configuration
6124 //! locale : Maldivian [dv]
6125 //! author : Jawish Hameed : https://github.com/jawish
6151 hooks
.defineLocale('dv', {
6153 monthsShort
: months
$4,
6154 weekdays
: weekdays
,
6155 weekdaysShort
: weekdays
,
6156 weekdaysMin
: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
6163 LLL
: 'D MMMM YYYY HH:mm',
6164 LLLL
: 'dddd D MMMM YYYY HH:mm'
6166 meridiemParse
: /މކ|މފ/,
6167 isPM : function (input
) {
6168 return 'މފ' === input
;
6170 meridiem : function (hour
, minute
, isLower
) {
6178 sameDay
: '[މިއަދު] LT',
6179 nextDay
: '[މާދަމާ] LT',
6180 nextWeek
: 'dddd LT',
6181 lastDay
: '[އިއްޔެ] LT',
6182 lastWeek
: '[ފާއިތުވި] dddd LT',
6186 future
: 'ތެރޭގައި %s',
6188 s
: 'ސިކުންތުކޮޅެއް',
6200 preparse: function (string
) {
6201 return string
.replace(/،/g, ',');
6203 postformat: function (string
) {
6204 return string
.replace(/,/g
, '،');
6207 dow
: 7, // Sunday is the first day of the week.
6208 doy
: 12 // The week that contains Jan 1st is the first week of the year.
6212 //! moment.js locale configuration
6213 //! locale : Greek [el]
6214 //! author : Aggelos Karalias : https://github.com/mehiel
6216 hooks
.defineLocale('el', {
6217 monthsNominativeEl
: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
6218 monthsGenitiveEl
: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
6219 months : function (momentToFormat
, format
) {
6220 if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before
'MMMM'
6221 return this._monthsGenitiveEl
[momentToFormat
.month()];
6223 return this._monthsNominativeEl
[momentToFormat
.month()];
6226 monthsShort
: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
6227 weekdays
: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
6228 weekdaysShort
: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
6229 weekdaysMin
: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
6230 meridiem : function (hours
, minutes
, isLower
) {
6232 return isLower
? 'μμ' : 'ΜΜ';
6234 return isLower
? 'πμ' : 'ΠΜ';
6237 isPM : function (input
) {
6238 return ((input
+ '').toLowerCase()[0] === 'μ');
6240 meridiemParse
: /[ΠΜ]\.?Μ?\.?/i,
6246 LLL
: 'D MMMM YYYY h:mm A',
6247 LLLL
: 'dddd, D MMMM YYYY h:mm A'
6250 sameDay
: '[Σήμερα {}] LT',
6251 nextDay
: '[Αύριο {}] LT',
6252 nextWeek
: 'dddd [{}] LT',
6253 lastDay
: '[Χθες {}] LT',
6254 lastWeek : function () {
6255 switch (this.day()) {
6257 return '[το προηγούμενο] dddd [{}] LT';
6259 return '[την προηγούμενη] dddd [{}] LT';
6264 calendar : function (key
, mom
) {
6265 var output
= this._calendarEl
[key
],
6266 hours
= mom
&& mom
.hours();
6267 if (isFunction(output
)) {
6268 output
= output
.apply(mom
);
6270 return output
.replace('{}', (hours
% 12 === 1 ? 'στη' : 'στις'));
6275 s
: 'λίγα δευτερόλεπτα',
6287 ordinalParse
: /\d{1,2}η/,
6290 dow
: 1, // Monday is the first day of the week.
6291 doy
: 4 // The week that contains Jan 4st is the first week of the year.
6295 //! moment.js locale configuration
6296 //! locale : English (Australia) [en-au]
6297 //! author : Jared Morse : https://github.com/jarcoal
6299 hooks
.defineLocale('en-au', {
6300 months
: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
6301 monthsShort
: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
6302 weekdays
: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
6303 weekdaysShort
: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
6304 weekdaysMin
: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
6310 LLL
: 'D MMMM YYYY h:mm A',
6311 LLLL
: 'dddd, D MMMM YYYY h:mm A'
6314 sameDay
: '[Today at] LT',
6315 nextDay
: '[Tomorrow at] LT',
6316 nextWeek
: 'dddd [at] LT',
6317 lastDay
: '[Yesterday at] LT',
6318 lastWeek
: '[Last] dddd [at] LT',
6324 s
: 'a few seconds',
6336 ordinalParse
: /\d{1,2}(st|nd|rd|th)/,
6337 ordinal : function (number
) {
6338 var b
= number
% 10,
6339 output
= (~~(number
% 100 / 10) === 1) ? 'th' :
6342 (b
=== 3) ? 'rd' : 'th';
6343 return number
+ output
;
6346 dow
: 1, // Monday is the first day of the week.
6347 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6351 //! moment.js locale configuration
6352 //! locale : English (Canada) [en-ca]
6353 //! author : Jonathan Abourbih : https://github.com/jonbca
6355 hooks
.defineLocale('en-ca', {
6356 months
: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
6357 monthsShort
: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
6358 weekdays
: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
6359 weekdaysShort
: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
6360 weekdaysMin
: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
6365 LL
: 'MMMM D, YYYY',
6366 LLL
: 'MMMM D, YYYY h:mm A',
6367 LLLL
: 'dddd, MMMM D, YYYY h:mm A'
6370 sameDay
: '[Today at] LT',
6371 nextDay
: '[Tomorrow at] LT',
6372 nextWeek
: 'dddd [at] LT',
6373 lastDay
: '[Yesterday at] LT',
6374 lastWeek
: '[Last] dddd [at] LT',
6380 s
: 'a few seconds',
6392 ordinalParse
: /\d{1,2}(st|nd|rd|th)/,
6393 ordinal : function (number
) {
6394 var b
= number
% 10,
6395 output
= (~~(number
% 100 / 10) === 1) ? 'th' :
6398 (b
=== 3) ? 'rd' : 'th';
6399 return number
+ output
;
6403 //! moment.js locale configuration
6404 //! locale : English (United Kingdom) [en-gb]
6405 //! author : Chris Gedrim : https://github.com/chrisgedrim
6407 hooks
.defineLocale('en-gb', {
6408 months
: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
6409 monthsShort
: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
6410 weekdays
: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
6411 weekdaysShort
: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
6412 weekdaysMin
: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
6418 LLL
: 'D MMMM YYYY HH:mm',
6419 LLLL
: 'dddd, D MMMM YYYY HH:mm'
6422 sameDay
: '[Today at] LT',
6423 nextDay
: '[Tomorrow at] LT',
6424 nextWeek
: 'dddd [at] LT',
6425 lastDay
: '[Yesterday at] LT',
6426 lastWeek
: '[Last] dddd [at] LT',
6432 s
: 'a few seconds',
6444 ordinalParse
: /\d{1,2}(st|nd|rd|th)/,
6445 ordinal : function (number
) {
6446 var b
= number
% 10,
6447 output
= (~~(number
% 100 / 10) === 1) ? 'th' :
6450 (b
=== 3) ? 'rd' : 'th';
6451 return number
+ output
;
6454 dow
: 1, // Monday is the first day of the week.
6455 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6459 //! moment.js locale configuration
6460 //! locale : English (Ireland) [en-ie]
6461 //! author : Chris Cartlidge : https://github.com/chriscartlidge
6463 hooks
.defineLocale('en-ie', {
6464 months
: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
6465 monthsShort
: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
6466 weekdays
: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
6467 weekdaysShort
: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
6468 weekdaysMin
: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
6474 LLL
: 'D MMMM YYYY HH:mm',
6475 LLLL
: 'dddd D MMMM YYYY HH:mm'
6478 sameDay
: '[Today at] LT',
6479 nextDay
: '[Tomorrow at] LT',
6480 nextWeek
: 'dddd [at] LT',
6481 lastDay
: '[Yesterday at] LT',
6482 lastWeek
: '[Last] dddd [at] LT',
6488 s
: 'a few seconds',
6500 ordinalParse
: /\d{1,2}(st|nd|rd|th)/,
6501 ordinal : function (number
) {
6502 var b
= number
% 10,
6503 output
= (~~(number
% 100 / 10) === 1) ? 'th' :
6506 (b
=== 3) ? 'rd' : 'th';
6507 return number
+ output
;
6510 dow
: 1, // Monday is the first day of the week.
6511 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6515 //! moment.js locale configuration
6516 //! locale : English (New Zealand) [en-nz]
6517 //! author : Luke McGregor : https://github.com/lukemcgregor
6519 hooks
.defineLocale('en-nz', {
6520 months
: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
6521 monthsShort
: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
6522 weekdays
: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
6523 weekdaysShort
: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
6524 weekdaysMin
: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
6530 LLL
: 'D MMMM YYYY h:mm A',
6531 LLLL
: 'dddd, D MMMM YYYY h:mm A'
6534 sameDay
: '[Today at] LT',
6535 nextDay
: '[Tomorrow at] LT',
6536 nextWeek
: 'dddd [at] LT',
6537 lastDay
: '[Yesterday at] LT',
6538 lastWeek
: '[Last] dddd [at] LT',
6544 s
: 'a few seconds',
6556 ordinalParse
: /\d{1,2}(st|nd|rd|th)/,
6557 ordinal : function (number
) {
6558 var b
= number
% 10,
6559 output
= (~~(number
% 100 / 10) === 1) ? 'th' :
6562 (b
=== 3) ? 'rd' : 'th';
6563 return number
+ output
;
6566 dow
: 1, // Monday is the first day of the week.
6567 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6571 //! moment.js locale configuration
6572 //! locale : Esperanto [eo]
6573 //! author : Colin Dean : https://github.com/colindean
6574 //! komento: Mi estas malcerta se mi korekte traktis akuzativojn en tiu traduko.
6575 //! Se ne, bonvolu korekti kaj avizi min por ke mi povas lerni!
6577 hooks
.defineLocale('eo', {
6578 months
: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
6579 monthsShort
: 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
6580 weekdays
: 'Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato'.split('_'),
6581 weekdaysShort
: 'Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab'.split('_'),
6582 weekdaysMin
: 'Di_Lu_Ma_Me_Ĵa_Ve_Sa'.split('_'),
6587 LL
: 'D[-an de] MMMM, YYYY',
6588 LLL
: 'D[-an de] MMMM, YYYY HH:mm',
6589 LLLL
: 'dddd, [la] D[-an de] MMMM, YYYY HH:mm'
6591 meridiemParse
: /[ap]\.t\.m/i,
6592 isPM: function (input
) {
6593 return input
.charAt(0).toLowerCase() === 'p';
6595 meridiem : function (hours
, minutes
, isLower
) {
6597 return isLower
? 'p.t.m.' : 'P.T.M.';
6599 return isLower
? 'a.t.m.' : 'A.T.M.';
6603 sameDay
: '[Hodiaŭ je] LT',
6604 nextDay
: '[Morgaŭ je] LT',
6605 nextWeek
: 'dddd [je] LT',
6606 lastDay
: '[Hieraŭ je] LT',
6607 lastWeek
: '[pasinta] dddd [je] LT',
6618 d
: 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
6625 ordinalParse
: /\d{1,2}a/,
6628 dow
: 1, // Monday is the first day of the week.
6629 doy
: 7 // The week that contains Jan 1st is the first week of the year.
6633 //! moment.js locale configuration
6634 //! locale : Spanish (Dominican Republic) [es-do]
6636 var monthsShortDot
= 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
6637 var monthsShort
$1 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
6639 hooks
.defineLocale('es-do', {
6640 months
: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
6641 monthsShort : function (m
, format
) {
6642 if (/-MMM-/.test(format
)) {
6643 return monthsShort
$1[m
.month()];
6645 return monthsShortDot
[m
.month()];
6648 monthsParseExact
: true,
6649 weekdays
: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
6650 weekdaysShort
: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
6651 weekdaysMin
: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
6652 weekdaysParseExact
: true,
6657 LL
: 'D [de] MMMM [de] YYYY',
6658 LLL
: 'D [de] MMMM [de] YYYY h:mm A',
6659 LLLL
: 'dddd, D [de] MMMM [de] YYYY h:mm A'
6662 sameDay : function () {
6663 return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
6665 nextDay : function () {
6666 return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
6668 nextWeek : function () {
6669 return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
6671 lastDay : function () {
6672 return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
6674 lastWeek : function () {
6675 return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
6682 s
: 'unos segundos',
6694 ordinalParse
: /\d{1,2}º/,
6697 dow
: 1, // Monday is the first day of the week.
6698 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6702 //! moment.js locale configuration
6703 //! locale : Spanish [es]
6704 //! author : Julio Napurí : https://github.com/julionc
6706 var monthsShortDot
$1 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
6707 var monthsShort
$2 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
6709 hooks
.defineLocale('es', {
6710 months
: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
6711 monthsShort : function (m
, format
) {
6712 if (/-MMM-/.test(format
)) {
6713 return monthsShort
$2[m
.month()];
6715 return monthsShortDot
$1[m
.month()];
6718 monthsParseExact
: true,
6719 weekdays
: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
6720 weekdaysShort
: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
6721 weekdaysMin
: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
6722 weekdaysParseExact
: true,
6727 LL
: 'D [de] MMMM [de] YYYY',
6728 LLL
: 'D [de] MMMM [de] YYYY H:mm',
6729 LLLL
: 'dddd, D [de] MMMM [de] YYYY H:mm'
6732 sameDay : function () {
6733 return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
6735 nextDay : function () {
6736 return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
6738 nextWeek : function () {
6739 return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
6741 lastDay : function () {
6742 return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
6744 lastWeek : function () {
6745 return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
6752 s
: 'unos segundos',
6764 ordinalParse
: /\d{1,2}º/,
6767 dow
: 1, // Monday is the first day of the week.
6768 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6772 //! moment.js locale configuration
6773 //! locale : Estonian [et]
6774 //! author : Henry Kehlmann : https://github.com/madhenry
6775 //! improvements : Illimar Tambek : https://github.com/ragulka
6777 function processRelativeTime
$2(number
, withoutSuffix
, key
, isFuture
) {
6779 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
6780 'm' : ['ühe minuti', 'üks minut'],
6781 'mm': [number
+ ' minuti', number
+ ' minutit'],
6782 'h' : ['ühe tunni', 'tund aega', 'üks tund'],
6783 'hh': [number
+ ' tunni', number
+ ' tundi'],
6784 'd' : ['ühe päeva', 'üks päev'],
6785 'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
6786 'MM': [number
+ ' kuu', number
+ ' kuud'],
6787 'y' : ['ühe aasta', 'aasta', 'üks aasta'],
6788 'yy': [number
+ ' aasta', number
+ ' aastat']
6790 if (withoutSuffix
) {
6791 return format
[key
][2] ? format
[key
][2] : format
[key
][1];
6793 return isFuture
? format
[key
][0] : format
[key
][1];
6796 hooks
.defineLocale('et', {
6797 months
: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
6798 monthsShort
: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
6799 weekdays
: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
6800 weekdaysShort
: 'P_E_T_K_N_R_L'.split('_'),
6801 weekdaysMin
: 'P_E_T_K_N_R_L'.split('_'),
6806 LL
: 'D. MMMM YYYY',
6807 LLL
: 'D. MMMM YYYY H:mm',
6808 LLLL
: 'dddd, D. MMMM YYYY H:mm'
6811 sameDay
: '[Täna,] LT',
6812 nextDay
: '[Homme,] LT',
6813 nextWeek
: '[Järgmine] dddd LT',
6814 lastDay
: '[Eile,] LT',
6815 lastWeek
: '[Eelmine] dddd LT',
6819 future
: '%s pärast',
6821 s
: processRelativeTime
$2,
6822 m
: processRelativeTime
$2,
6823 mm
: processRelativeTime
$2,
6824 h
: processRelativeTime
$2,
6825 hh
: processRelativeTime
$2,
6826 d
: processRelativeTime
$2,
6828 M
: processRelativeTime
$2,
6829 MM
: processRelativeTime
$2,
6830 y
: processRelativeTime
$2,
6831 yy
: processRelativeTime
$2
6833 ordinalParse
: /\d{1,2}\./,
6836 dow
: 1, // Monday is the first day of the week.
6837 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6841 //! moment.js locale configuration
6842 //! locale : Basque [eu]
6843 //! author : Eneko Illarramendi : https://github.com/eillarra
6845 hooks
.defineLocale('eu', {
6846 months
: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
6847 monthsShort
: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
6848 monthsParseExact
: true,
6849 weekdays
: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
6850 weekdaysShort
: 'ig._al._ar._az._og._ol._lr.'.split('_'),
6851 weekdaysMin
: 'ig_al_ar_az_og_ol_lr'.split('_'),
6852 weekdaysParseExact
: true,
6857 LL
: 'YYYY[ko] MMMM[ren] D[a]',
6858 LLL
: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
6859 LLLL
: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
6861 ll
: 'YYYY[ko] MMM D[a]',
6862 lll
: 'YYYY[ko] MMM D[a] HH:mm',
6863 llll
: 'ddd, YYYY[ko] MMM D[a] HH:mm'
6866 sameDay
: '[gaur] LT[etan]',
6867 nextDay
: '[bihar] LT[etan]',
6868 nextWeek
: 'dddd LT[etan]',
6869 lastDay
: '[atzo] LT[etan]',
6870 lastWeek
: '[aurreko] dddd LT[etan]',
6874 future
: '%s barru',
6876 s
: 'segundo batzuk',
6888 ordinalParse
: /\d{1,2}\./,
6891 dow
: 1, // Monday is the first day of the week.
6892 doy
: 7 // The week that contains Jan 1st is the first week of the year.
6896 //! moment.js locale configuration
6897 //! locale : Persian [fa]
6898 //! author : Ebrahim Byagowi : https://github.com/ebraminio
6925 hooks
.defineLocale('fa', {
6926 months
: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
6927 monthsShort
: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
6928 weekdays
: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
6929 weekdaysShort
: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
6930 weekdaysMin
: 'ی_د_س_چ_پ_ج_ش'.split('_'),
6931 weekdaysParseExact
: true,
6937 LLL
: 'D MMMM YYYY HH:mm',
6938 LLLL
: 'dddd, D MMMM YYYY HH:mm'
6940 meridiemParse
: /قبل از ظهر|بعد از ظهر/,
6941 isPM: function (input
) {
6942 return /بعد از ظهر/.test(input
);
6944 meridiem : function (hour
, minute
, isLower
) {
6946 return 'قبل از ظهر';
6948 return 'بعد از ظهر';
6952 sameDay
: '[امروز ساعت] LT',
6953 nextDay
: '[فردا ساعت] LT',
6954 nextWeek
: 'dddd [ساعت] LT',
6955 lastDay
: '[دیروز ساعت] LT',
6956 lastWeek
: 'dddd [پیش] [ساعت] LT',
6974 preparse: function (string
) {
6975 return string
.replace(/[۰-۹]/g, function (match
) {
6976 return numberMap
$4[match
];
6977 }).replace(/،/g, ',');
6979 postformat: function (string
) {
6980 return string
.replace(/\d/g, function (match
) {
6981 return symbolMap
$5[match
];
6982 }).replace(/,/g
, '،');
6984 ordinalParse
: /\d{1,2}م/,
6987 dow
: 6, // Saturday is the first day of the week.
6988 doy
: 12 // The week that contains Jan 1st is the first week of the year.
6992 //! moment.js locale configuration
6993 //! locale : Finnish [fi]
6994 //! author : Tarmo Aidantausta : https://github.com/bleadof
6996 var numbersPast
= 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' ');
6997 var numbersFuture
= [
6998 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
6999 numbersPast
[7], numbersPast
[8], numbersPast
[9]
7001 function translate
$2(number
, withoutSuffix
, key
, isFuture
) {
7005 return isFuture
? 'muutaman sekunnin' : 'muutama sekunti';
7007 return isFuture
? 'minuutin' : 'minuutti';
7009 result
= isFuture
? 'minuutin' : 'minuuttia';
7012 return isFuture
? 'tunnin' : 'tunti';
7014 result
= isFuture
? 'tunnin' : 'tuntia';
7017 return isFuture
? 'päivän' : 'päivä';
7019 result
= isFuture
? 'päivän' : 'päivää';
7022 return isFuture
? 'kuukauden' : 'kuukausi';
7024 result
= isFuture
? 'kuukauden' : 'kuukautta';
7027 return isFuture
? 'vuoden' : 'vuosi';
7029 result
= isFuture
? 'vuoden' : 'vuotta';
7032 result
= verbalNumber(number
, isFuture
) + ' ' + result
;
7035 function verbalNumber(number
, isFuture
) {
7036 return number
< 10 ? (isFuture
? numbersFuture
[number
] : numbersPast
[number
]) : number
;
7039 hooks
.defineLocale('fi', {
7040 months
: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
7041 monthsShort
: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
7042 weekdays
: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
7043 weekdaysShort
: 'su_ma_ti_ke_to_pe_la'.split('_'),
7044 weekdaysMin
: 'su_ma_ti_ke_to_pe_la'.split('_'),
7049 LL
: 'Do MMMM[ta] YYYY',
7050 LLL
: 'Do MMMM[ta] YYYY, [klo] HH.mm',
7051 LLLL
: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
7054 lll
: 'Do MMM YYYY, [klo] HH.mm',
7055 llll
: 'ddd, Do MMM YYYY, [klo] HH.mm'
7058 sameDay
: '[tänään] [klo] LT',
7059 nextDay
: '[huomenna] [klo] LT',
7060 nextWeek
: 'dddd [klo] LT',
7061 lastDay
: '[eilen] [klo] LT',
7062 lastWeek
: '[viime] dddd[na] [klo] LT',
7066 future
: '%s päästä',
7080 ordinalParse
: /\d{1,2}\./,
7083 dow
: 1, // Monday is the first day of the week.
7084 doy
: 4 // The week that contains Jan 4th is the first week of the year.
7088 //! moment.js locale configuration
7089 //! locale : Faroese [fo]
7090 //! author : Ragnar Johannesen : https://github.com/ragnar123
7092 hooks
.defineLocale('fo', {
7093 months
: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
7094 monthsShort
: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
7095 weekdays
: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
7096 weekdaysShort
: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
7097 weekdaysMin
: 'su_má_tý_mi_hó_fr_le'.split('_'),
7103 LLL
: 'D MMMM YYYY HH:mm',
7104 LLLL
: 'dddd D. MMMM, YYYY HH:mm'
7107 sameDay
: '[Í dag kl.] LT',
7108 nextDay
: '[Í morgin kl.] LT',
7109 nextWeek
: 'dddd [kl.] LT',
7110 lastDay
: '[Í gjár kl.] LT',
7111 lastWeek
: '[síðstu] dddd [kl] LT',
7129 ordinalParse
: /\d{1,2}\./,
7132 dow
: 1, // Monday is the first day of the week.
7133 doy
: 4 // The week that contains Jan 4th is the first week of the year.
7137 //! moment.js locale configuration
7138 //! locale : French (Canada) [fr-ca]
7139 //! author : Jonathan Abourbih : https://github.com/jonbca
7141 hooks
.defineLocale('fr-ca', {
7142 months
: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
7143 monthsShort
: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
7144 monthsParseExact
: true,
7145 weekdays
: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
7146 weekdaysShort
: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
7147 weekdaysMin
: 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
7148 weekdaysParseExact
: true,
7154 LLL
: 'D MMMM YYYY HH:mm',
7155 LLLL
: 'dddd D MMMM YYYY HH:mm'
7158 sameDay
: '[Aujourd\'hui à] LT',
7159 nextDay
: '[Demain à] LT',
7160 nextWeek
: 'dddd [à] LT',
7161 lastDay
: '[Hier à] LT',
7162 lastWeek
: 'dddd [dernier à] LT',
7168 s
: 'quelques secondes',
7180 ordinalParse
: /\d{1,2}(er|e)/,
7181 ordinal : function (number
) {
7182 return number
+ (number
=== 1 ? 'er' : 'e');
7186 //! moment.js locale configuration
7187 //! locale : French (Switzerland) [fr-ch]
7188 //! author : Gaspard Bucher : https://github.com/gaspard
7190 hooks
.defineLocale('fr-ch', {
7191 months
: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
7192 monthsShort
: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
7193 monthsParseExact
: true,
7194 weekdays
: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
7195 weekdaysShort
: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
7196 weekdaysMin
: 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
7197 weekdaysParseExact
: true,
7203 LLL
: 'D MMMM YYYY HH:mm',
7204 LLLL
: 'dddd D MMMM YYYY HH:mm'
7207 sameDay
: '[Aujourd\'hui à] LT',
7208 nextDay
: '[Demain à] LT',
7209 nextWeek
: 'dddd [à] LT',
7210 lastDay
: '[Hier à] LT',
7211 lastWeek
: 'dddd [dernier à] LT',
7217 s
: 'quelques secondes',
7229 ordinalParse
: /\d{1,2}(er|e)/,
7230 ordinal : function (number
) {
7231 return number
+ (number
=== 1 ? 'er' : 'e');
7234 dow
: 1, // Monday is the first day of the week.
7235 doy
: 4 // The week that contains Jan 4th is the first week of the year.
7239 //! moment.js locale configuration
7240 //! locale : French [fr]
7241 //! author : John Fischer : https://github.com/jfroffice
7243 hooks
.defineLocale('fr', {
7244 months
: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
7245 monthsShort
: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
7246 monthsParseExact
: true,
7247 weekdays
: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
7248 weekdaysShort
: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
7249 weekdaysMin
: 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
7250 weekdaysParseExact
: true,
7256 LLL
: 'D MMMM YYYY HH:mm',
7257 LLLL
: 'dddd D MMMM YYYY HH:mm'
7260 sameDay
: '[Aujourd\'hui à] LT',
7261 nextDay
: '[Demain à] LT',
7262 nextWeek
: 'dddd [à] LT',
7263 lastDay
: '[Hier à] LT',
7264 lastWeek
: 'dddd [dernier à] LT',
7270 s
: 'quelques secondes',
7282 ordinalParse
: /\d{1,2}(er|)/,
7283 ordinal : function (number
) {
7284 return number
+ (number
=== 1 ? 'er' : '');
7287 dow
: 1, // Monday is the first day of the week.
7288 doy
: 4 // The week that contains Jan 4th is the first week of the year.
7292 //! moment.js locale configuration
7293 //! locale : Frisian [fy]
7294 //! author : Robin van der Vliet : https://github.com/robin0van0der0v
7296 var monthsShortWithDots
= 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_');
7297 var monthsShortWithoutDots
= 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
7299 hooks
.defineLocale('fy', {
7300 months
: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
7301 monthsShort : function (m
, format
) {
7302 if (/-MMM-/.test(format
)) {
7303 return monthsShortWithoutDots
[m
.month()];
7305 return monthsShortWithDots
[m
.month()];
7308 monthsParseExact
: true,
7309 weekdays
: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
7310 weekdaysShort
: 'si._mo._ti._wo._to._fr._so.'.split('_'),
7311 weekdaysMin
: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
7312 weekdaysParseExact
: true,
7318 LLL
: 'D MMMM YYYY HH:mm',
7319 LLLL
: 'dddd D MMMM YYYY HH:mm'
7322 sameDay
: '[hjoed om] LT',
7323 nextDay
: '[moarn om] LT',
7324 nextWeek
: 'dddd [om] LT',
7325 lastDay
: '[juster om] LT',
7326 lastWeek
: '[ôfrûne] dddd [om] LT',
7332 s
: 'in pear sekonden',
7344 ordinalParse
: /\d{1,2}(ste|de)/,
7345 ordinal : function (number
) {
7346 return number
+ ((number
=== 1 || number
=== 8 || number
>= 20) ? 'ste' : 'de');
7349 dow
: 1, // Monday is the first day of the week.
7350 doy
: 4 // The week that contains Jan 4th is the first week of the year.
7354 //! moment.js locale configuration
7355 //! locale : Scottish Gaelic [gd]
7356 //! author : Jon Ashdown : https://github.com/jonashdown
7359 'Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'
7362 var monthsShort
$3 = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
7364 var weekdays
$1 = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
7366 var weekdaysShort
= ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
7368 var weekdaysMin
= ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
7370 hooks
.defineLocale('gd', {
7372 monthsShort
: monthsShort
$3,
7373 monthsParseExact
: true,
7374 weekdays
: weekdays
$1,
7375 weekdaysShort
: weekdaysShort
,
7376 weekdaysMin
: weekdaysMin
,
7382 LLL
: 'D MMMM YYYY HH:mm',
7383 LLLL
: 'dddd, D MMMM YYYY HH:mm'
7386 sameDay
: '[An-diugh aig] LT',
7387 nextDay
: '[A-màireach aig] LT',
7388 nextWeek
: 'dddd [aig] LT',
7389 lastDay
: '[An-dè aig] LT',
7390 lastWeek
: 'dddd [seo chaidh] [aig] LT',
7394 future
: 'ann an %s',
7395 past
: 'bho chionn %s',
7396 s
: 'beagan diogan',
7398 mm
: '%d mionaidean',
7408 ordinalParse
: /\d{1,2}(d|na|mh)/,
7409 ordinal : function (number
) {
7410 var output
= number
=== 1 ? 'd' : number
% 10 === 2 ? 'na' : 'mh';
7411 return number
+ output
;
7414 dow
: 1, // Monday is the first day of the week.
7415 doy
: 4 // The week that contains Jan 4th is the first week of the year.
7419 //! moment.js locale configuration
7420 //! locale : Galician [gl]
7421 //! author : Juan G. Hurtado : https://github.com/juanghurtado
7423 hooks
.defineLocale('gl', {
7424 months
: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
7425 monthsShort
: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
7426 monthsParseExact
: true,
7427 weekdays
: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
7428 weekdaysShort
: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
7429 weekdaysMin
: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
7430 weekdaysParseExact
: true,
7435 LL
: 'D [de] MMMM [de] YYYY',
7436 LLL
: 'D [de] MMMM [de] YYYY H:mm',
7437 LLLL
: 'dddd, D [de] MMMM [de] YYYY H:mm'
7440 sameDay : function () {
7441 return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
7443 nextDay : function () {
7444 return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
7446 nextWeek : function () {
7447 return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
7449 lastDay : function () {
7450 return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
7452 lastWeek : function () {
7453 return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
7458 future : function (str
) {
7459 if (str
.indexOf('un') === 0) {
7477 ordinalParse
: /\d{1,2}º/,
7480 dow
: 1, // Monday is the first day of the week.
7481 doy
: 4 // The week that contains Jan 4th is the first week of the year.
7485 //! moment.js locale configuration
7486 //! locale : Hebrew [he]
7487 //! author : Tomer Cohen : https://github.com/tomer
7488 //! author : Moshe Simantov : https://github.com/DevelopmentIL
7489 //! author : Tal Ater : https://github.com/TalAter
7491 hooks
.defineLocale('he', {
7492 months
: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
7493 monthsShort
: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
7494 weekdays
: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
7495 weekdaysShort
: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
7496 weekdaysMin
: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
7501 LL
: 'D [ב]MMMM YYYY',
7502 LLL
: 'D [ב]MMMM YYYY HH:mm',
7503 LLLL
: 'dddd, D [ב]MMMM YYYY HH:mm',
7506 lll
: 'D MMM YYYY HH:mm',
7507 llll
: 'ddd, D MMM YYYY HH:mm'
7510 sameDay
: '[היום ב־]LT',
7511 nextDay
: '[מחר ב־]LT',
7512 nextWeek
: 'dddd [בשעה] LT',
7513 lastDay
: '[אתמול ב־]LT',
7514 lastWeek
: '[ביום] dddd [האחרון בשעה] LT',
7524 hh : function (number
) {
7528 return number
+ ' שעות';
7531 dd : function (number
) {
7535 return number
+ ' ימים';
7538 MM : function (number
) {
7542 return number
+ ' חודשים';
7545 yy : function (number
) {
7548 } else if (number
% 10 === 0 && number
!== 10) {
7549 return number
+ ' שנה';
7551 return number
+ ' שנים';
7554 meridiemParse
: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
7555 isPM : function (input
) {
7556 return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input
);
7558 meridiem : function (hour
, minute
, isLower
) {
7560 return 'לפנות בוקר';
7561 } else if (hour
< 10) {
7563 } else if (hour
< 12) {
7564 return isLower
? 'לפנה"צ' : 'לפני הצהריים';
7565 } else if (hour
< 18) {
7566 return isLower
? 'אחה"צ' : 'אחרי הצהריים';
7573 //! moment.js locale configuration
7574 //! locale : Hindi [hi]
7575 //! author : Mayank Singhal : https://github.com/mayanksinghal
7602 hooks
.defineLocale('hi', {
7603 months
: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
7604 monthsShort
: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
7605 monthsParseExact
: true,
7606 weekdays
: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
7607 weekdaysShort
: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
7608 weekdaysMin
: 'र_सो_मं_बु_गु_शु_श'.split('_'),
7611 LTS
: 'A h:mm:ss बजे',
7614 LLL
: 'D MMMM YYYY, A h:mm बजे',
7615 LLLL
: 'dddd, D MMMM YYYY, A h:mm बजे'
7618 sameDay
: '[आज] LT',
7619 nextDay
: '[कल] LT',
7620 nextWeek
: 'dddd, LT',
7621 lastDay
: '[कल] LT',
7622 lastWeek
: '[पिछले] dddd, LT',
7640 preparse: function (string
) {
7641 return string
.replace(/[१२३४५६७८९०]/g, function (match
) {
7642 return numberMap
$5[match
];
7645 postformat: function (string
) {
7646 return string
.replace(/\d/g, function (match
) {
7647 return symbolMap
$6[match
];
7650 // Hindi notation for meridiems are quite fuzzy in practice. While there exists
7651 // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
7652 meridiemParse
: /रात|सुबह|दोपहर|शाम/,
7653 meridiemHour : function (hour
, meridiem
) {
7657 if (meridiem
=== 'रात') {
7658 return hour
< 4 ? hour
: hour
+ 12;
7659 } else if (meridiem
=== 'सुबह') {
7661 } else if (meridiem
=== 'दोपहर') {
7662 return hour
>= 10 ? hour
: hour
+ 12;
7663 } else if (meridiem
=== 'शाम') {
7667 meridiem : function (hour
, minute
, isLower
) {
7670 } else if (hour
< 10) {
7672 } else if (hour
< 17) {
7674 } else if (hour
< 20) {
7681 dow
: 0, // Sunday is the first day of the week.
7682 doy
: 6 // The week that contains Jan 1st is the first week of the year.
7686 //! moment.js locale configuration
7687 //! locale : Croatian [hr]
7688 //! author : Bojan Marković : https://github.com/bmarkovic
7690 function translate
$3(number
, withoutSuffix
, key
) {
7691 var result
= number
+ ' ';
7694 return withoutSuffix
? 'jedna minuta' : 'jedne minute';
7698 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
7705 return withoutSuffix
? 'jedan sat' : 'jednog sata';
7709 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
7725 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
7726 result
+= 'mjeseca';
7728 result
+= 'mjeseci';
7734 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
7743 hooks
.defineLocale('hr', {
7745 format
: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
7746 standalone
: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
7748 monthsShort
: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
7749 monthsParseExact
: true,
7750 weekdays
: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
7751 weekdaysShort
: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
7752 weekdaysMin
: 'ne_po_ut_sr_če_pe_su'.split('_'),
7753 weekdaysParseExact
: true,
7758 LL
: 'D. MMMM YYYY',
7759 LLL
: 'D. MMMM YYYY H:mm',
7760 LLLL
: 'dddd, D. MMMM YYYY H:mm'
7763 sameDay
: '[danas u] LT',
7764 nextDay
: '[sutra u] LT',
7765 nextWeek : function () {
7766 switch (this.day()) {
7768 return '[u] [nedjelju] [u] LT';
7770 return '[u] [srijedu] [u] LT';
7772 return '[u] [subotu] [u] LT';
7777 return '[u] dddd [u] LT';
7780 lastDay
: '[jučer u] LT',
7781 lastWeek : function () {
7782 switch (this.day()) {
7785 return '[prošlu] dddd [u] LT';
7787 return '[prošle] [subote] [u] LT';
7792 return '[prošli] dddd [u] LT';
7812 ordinalParse
: /\d{1,2}\./,
7815 dow
: 1, // Monday is the first day of the week.
7816 doy
: 7 // The week that contains Jan 1st is the first week of the year.
7820 //! moment.js locale configuration
7821 //! locale : Hungarian [hu]
7822 //! author : Adam Brunner : https://github.com/adambrunner
7824 var weekEndings
= 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
7825 function translate
$4(number
, withoutSuffix
, key
, isFuture
) {
7830 return (isFuture
|| withoutSuffix
) ? 'néhány másodperc' : 'néhány másodperce';
7832 return 'egy' + (isFuture
|| withoutSuffix
? ' perc' : ' perce');
7834 return num
+ (isFuture
|| withoutSuffix
? ' perc' : ' perce');
7836 return 'egy' + (isFuture
|| withoutSuffix
? ' óra' : ' órája');
7838 return num
+ (isFuture
|| withoutSuffix
? ' óra' : ' órája');
7840 return 'egy' + (isFuture
|| withoutSuffix
? ' nap' : ' napja');
7842 return num
+ (isFuture
|| withoutSuffix
? ' nap' : ' napja');
7844 return 'egy' + (isFuture
|| withoutSuffix
? ' hónap' : ' hónapja');
7846 return num
+ (isFuture
|| withoutSuffix
? ' hónap' : ' hónapja');
7848 return 'egy' + (isFuture
|| withoutSuffix
? ' év' : ' éve');
7850 return num
+ (isFuture
|| withoutSuffix
? ' év' : ' éve');
7854 function week(isFuture
) {
7855 return (isFuture
? '' : '[múlt] ') + '[' + weekEndings
[this.day()] + '] LT[-kor]';
7858 hooks
.defineLocale('hu', {
7859 months
: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
7860 monthsShort
: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
7861 weekdays
: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
7862 weekdaysShort
: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
7863 weekdaysMin
: 'v_h_k_sze_cs_p_szo'.split('_'),
7868 LL
: 'YYYY. MMMM D.',
7869 LLL
: 'YYYY. MMMM D. H:mm',
7870 LLLL
: 'YYYY. MMMM D., dddd H:mm'
7872 meridiemParse
: /de|du/i,
7873 isPM: function (input
) {
7874 return input
.charAt(1).toLowerCase() === 'u';
7876 meridiem : function (hours
, minutes
, isLower
) {
7878 return isLower
=== true ? 'de' : 'DE';
7880 return isLower
=== true ? 'du' : 'DU';
7884 sameDay
: '[ma] LT[-kor]',
7885 nextDay
: '[holnap] LT[-kor]',
7886 nextWeek : function () {
7887 return week
.call(this, true);
7889 lastDay
: '[tegnap] LT[-kor]',
7890 lastWeek : function () {
7891 return week
.call(this, false);
7896 future
: '%s múlva',
7910 ordinalParse
: /\d{1,2}\./,
7913 dow
: 1, // Monday is the first day of the week.
7914 doy
: 4 // The week that contains Jan 4th is the first week of the year.
7918 //! moment.js locale configuration
7919 //! locale : Armenian [hy-am]
7920 //! author : Armendarabyan : https://github.com/armendarabyan
7922 hooks
.defineLocale('hy-am', {
7924 format
: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
7925 standalone
: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
7927 monthsShort
: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
7928 weekdays
: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
7929 weekdaysShort
: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
7930 weekdaysMin
: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
7935 LL
: 'D MMMM YYYY թ.',
7936 LLL
: 'D MMMM YYYY թ., HH:mm',
7937 LLLL
: 'dddd, D MMMM YYYY թ., HH:mm'
7940 sameDay
: '[այսօր] LT',
7941 nextDay
: '[վաղը] LT',
7942 lastDay
: '[երեկ] LT',
7943 nextWeek: function () {
7944 return 'dddd [օրը ժամը] LT';
7946 lastWeek: function () {
7947 return '[անցած] dddd [օրը ժամը] LT';
7954 s
: 'մի քանի վայրկյան',
7966 meridiemParse
: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
7967 isPM: function (input
) {
7968 return /^(ցերեկվա|երեկոյան)$/.test(input
);
7970 meridiem : function (hour
) {
7973 } else if (hour
< 12) {
7975 } else if (hour
< 17) {
7981 ordinalParse
: /\d{1,2}|\d{1,2}-(ին|րդ)/,
7982 ordinal: function (number
, period
) {
7989 return number
+ '-ին';
7991 return number
+ '-րդ';
7997 dow
: 1, // Monday is the first day of the week.
7998 doy
: 7 // The week that contains Jan 1st is the first week of the year.
8002 //! moment.js locale configuration
8003 //! locale : Indonesian [id]
8004 //! author : Mohammad Satrio Utomo : https://github.com/tyok
8005 //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
8007 hooks
.defineLocale('id', {
8008 months
: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
8009 monthsShort
: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),
8010 weekdays
: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
8011 weekdaysShort
: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
8012 weekdaysMin
: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
8018 LLL
: 'D MMMM YYYY [pukul] HH.mm',
8019 LLLL
: 'dddd, D MMMM YYYY [pukul] HH.mm'
8021 meridiemParse
: /pagi|siang|sore|malam/,
8022 meridiemHour : function (hour
, meridiem
) {
8026 if (meridiem
=== 'pagi') {
8028 } else if (meridiem
=== 'siang') {
8029 return hour
>= 11 ? hour
: hour
+ 12;
8030 } else if (meridiem
=== 'sore' || meridiem
=== 'malam') {
8034 meridiem : function (hours
, minutes
, isLower
) {
8037 } else if (hours
< 15) {
8039 } else if (hours
< 19) {
8046 sameDay
: '[Hari ini pukul] LT',
8047 nextDay
: '[Besok pukul] LT',
8048 nextWeek
: 'dddd [pukul] LT',
8049 lastDay
: '[Kemarin pukul] LT',
8050 lastWeek
: 'dddd [lalu pukul] LT',
8054 future
: 'dalam %s',
8055 past
: '%s yang lalu',
8056 s
: 'beberapa detik',
8069 dow
: 1, // Monday is the first day of the week.
8070 doy
: 7 // The week that contains Jan 1st is the first week of the year.
8074 //! moment.js locale configuration
8075 //! locale : Icelandic [is]
8076 //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
8078 function plural
$2(n
) {
8079 if (n
% 100 === 11) {
8081 } else if (n
% 10 === 1) {
8086 function translate
$5(number
, withoutSuffix
, key
, isFuture
) {
8087 var result
= number
+ ' ';
8090 return withoutSuffix
|| isFuture
? 'nokkrar sekúndur' : 'nokkrum sekúndum';
8092 return withoutSuffix
? 'mínúta' : 'mínútu';
8094 if (plural
$2(number
)) {
8095 return result
+ (withoutSuffix
|| isFuture
? 'mínútur' : 'mínútum');
8096 } else if (withoutSuffix
) {
8097 return result
+ 'mínúta';
8099 return result
+ 'mínútu';
8101 if (plural
$2(number
)) {
8102 return result
+ (withoutSuffix
|| isFuture
? 'klukkustundir' : 'klukkustundum');
8104 return result
+ 'klukkustund';
8106 if (withoutSuffix
) {
8109 return isFuture
? 'dag' : 'degi';
8111 if (plural
$2(number
)) {
8112 if (withoutSuffix
) {
8113 return result
+ 'dagar';
8115 return result
+ (isFuture
? 'daga' : 'dögum');
8116 } else if (withoutSuffix
) {
8117 return result
+ 'dagur';
8119 return result
+ (isFuture
? 'dag' : 'degi');
8121 if (withoutSuffix
) {
8124 return isFuture
? 'mánuð' : 'mánuði';
8126 if (plural
$2(number
)) {
8127 if (withoutSuffix
) {
8128 return result
+ 'mánuðir';
8130 return result
+ (isFuture
? 'mánuði' : 'mánuðum');
8131 } else if (withoutSuffix
) {
8132 return result
+ 'mánuður';
8134 return result
+ (isFuture
? 'mánuð' : 'mánuði');
8136 return withoutSuffix
|| isFuture
? 'ár' : 'ári';
8138 if (plural
$2(number
)) {
8139 return result
+ (withoutSuffix
|| isFuture
? 'ár' : 'árum');
8141 return result
+ (withoutSuffix
|| isFuture
? 'ár' : 'ári');
8145 hooks
.defineLocale('is', {
8146 months
: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
8147 monthsShort
: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
8148 weekdays
: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
8149 weekdaysShort
: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
8150 weekdaysMin
: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
8155 LL
: 'D. MMMM YYYY',
8156 LLL
: 'D. MMMM YYYY [kl.] H:mm',
8157 LLLL
: 'dddd, D. MMMM YYYY [kl.] H:mm'
8160 sameDay
: '[í dag kl.] LT',
8161 nextDay
: '[á morgun kl.] LT',
8162 nextWeek
: 'dddd [kl.] LT',
8163 lastDay
: '[í gær kl.] LT',
8164 lastWeek
: '[síðasta] dddd [kl.] LT',
8168 future
: 'eftir %s',
8169 past
: 'fyrir %s síðan',
8182 ordinalParse
: /\d{1,2}\./,
8185 dow
: 1, // Monday is the first day of the week.
8186 doy
: 4 // The week that contains Jan 4th is the first week of the year.
8190 //! moment.js locale configuration
8191 //! locale : Italian [it]
8192 //! author : Lorenzo : https://github.com/aliem
8193 //! author: Mattia Larentis: https://github.com/nostalgiaz
8195 hooks
.defineLocale('it', {
8196 months
: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
8197 monthsShort
: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
8198 weekdays
: 'Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato'.split('_'),
8199 weekdaysShort
: 'Dom_Lun_Mar_Mer_Gio_Ven_Sab'.split('_'),
8200 weekdaysMin
: 'Do_Lu_Ma_Me_Gi_Ve_Sa'.split('_'),
8206 LLL
: 'D MMMM YYYY HH:mm',
8207 LLLL
: 'dddd, D MMMM YYYY HH:mm'
8210 sameDay
: '[Oggi alle] LT',
8211 nextDay
: '[Domani alle] LT',
8212 nextWeek
: 'dddd [alle] LT',
8213 lastDay
: '[Ieri alle] LT',
8214 lastWeek: function () {
8215 switch (this.day()) {
8217 return '[la scorsa] dddd [alle] LT';
8219 return '[lo scorso] dddd [alle] LT';
8225 future : function (s
) {
8226 return ((/^[0-9].+$/).test(s
) ? 'tra' : 'in') + ' ' + s
;
8229 s
: 'alcuni secondi',
8241 ordinalParse
: /\d{1,2}º/,
8244 dow
: 1, // Monday is the first day of the week.
8245 doy
: 4 // The week that contains Jan 4th is the first week of the year.
8249 //! moment.js locale configuration
8250 //! locale : Japanese [ja]
8251 //! author : LI Long : https://github.com/baryon
8253 hooks
.defineLocale('ja', {
8254 months
: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
8255 monthsShort
: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
8256 weekdays
: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
8257 weekdaysShort
: '日_月_火_水_木_金_土'.split('_'),
8258 weekdaysMin
: '日_月_火_水_木_金_土'.split('_'),
8264 LLL
: 'YYYY年M月D日Ah時m分',
8265 LLLL
: 'YYYY年M月D日Ah時m分 dddd'
8267 meridiemParse
: /午前|午後/i,
8268 isPM : function (input
) {
8269 return input
=== '午後';
8271 meridiem : function (hour
, minute
, isLower
) {
8279 sameDay
: '[今日] LT',
8280 nextDay
: '[明日] LT',
8281 nextWeek
: '[来週]dddd LT',
8282 lastDay
: '[昨日] LT',
8283 lastWeek
: '[前週]dddd LT',
8286 ordinalParse
: /\d{1,2}日/,
8287 ordinal : function (number
, period
) {
8292 return number
+ '日';
8314 //! moment.js locale configuration
8315 //! locale : Javanese [jv]
8316 //! author : Rony Lantip : https://github.com/lantip
8317 //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
8319 hooks
.defineLocale('jv', {
8320 months
: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
8321 monthsShort
: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
8322 weekdays
: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
8323 weekdaysShort
: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
8324 weekdaysMin
: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
8330 LLL
: 'D MMMM YYYY [pukul] HH.mm',
8331 LLLL
: 'dddd, D MMMM YYYY [pukul] HH.mm'
8333 meridiemParse
: /enjing|siyang|sonten|ndalu/,
8334 meridiemHour : function (hour
, meridiem
) {
8338 if (meridiem
=== 'enjing') {
8340 } else if (meridiem
=== 'siyang') {
8341 return hour
>= 11 ? hour
: hour
+ 12;
8342 } else if (meridiem
=== 'sonten' || meridiem
=== 'ndalu') {
8346 meridiem : function (hours
, minutes
, isLower
) {
8349 } else if (hours
< 15) {
8351 } else if (hours
< 19) {
8358 sameDay
: '[Dinten puniko pukul] LT',
8359 nextDay
: '[Mbenjang pukul] LT',
8360 nextWeek
: 'dddd [pukul] LT',
8361 lastDay
: '[Kala wingi pukul] LT',
8362 lastWeek
: 'dddd [kepengker pukul] LT',
8366 future
: 'wonten ing %s',
8367 past
: '%s ingkang kepengker',
8368 s
: 'sawetawis detik',
8369 m
: 'setunggal menit',
8371 h
: 'setunggal jam',
8381 dow
: 1, // Monday is the first day of the week.
8382 doy
: 7 // The week that contains Jan 1st is the first week of the year.
8386 //! moment.js locale configuration
8387 //! locale : Georgian [ka]
8388 //! author : Irakli Janiashvili : https://github.com/irakli-janiashvili
8390 hooks
.defineLocale('ka', {
8392 standalone
: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
8393 format
: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
8395 monthsShort
: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
8397 standalone
: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
8398 format
: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
8399 isFormat
: /(წინა|შემდეგ)/
8401 weekdaysShort
: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
8402 weekdaysMin
: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
8408 LLL
: 'D MMMM YYYY h:mm A',
8409 LLLL
: 'dddd, D MMMM YYYY h:mm A'
8412 sameDay
: '[დღეს] LT[-ზე]',
8413 nextDay
: '[ხვალ] LT[-ზე]',
8414 lastDay
: '[გუშინ] LT[-ზე]',
8415 nextWeek
: '[შემდეგ] dddd LT[-ზე]',
8416 lastWeek
: '[წინა] dddd LT-ზე',
8420 future : function (s
) {
8421 return (/(წამი|წუთი|საათი|წელი)/).test(s
) ?
8422 s
.replace(/ი$/, 'ში') :
8425 past : function (s
) {
8426 if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s
)) {
8427 return s
.replace(/(ი|ე)$/, 'ის წინ');
8429 if ((/წელი/).test(s
)) {
8430 return s
.replace(/წელი$/, 'წლის წინ');
8433 s
: 'რამდენიმე წამი',
8445 ordinalParse
: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
8446 ordinal : function (number
) {
8451 return number
+ '-ლი';
8453 if ((number
< 20) || (number
<= 100 && (number
% 20 === 0)) || (number
% 100 === 0)) {
8454 return 'მე-' + number
;
8456 return number
+ '-ე';
8464 //! moment.js locale configuration
8465 //! locale : Kazakh [kk]
8466 //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
8491 hooks
.defineLocale('kk', {
8492 months
: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
8493 monthsShort
: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
8494 weekdays
: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
8495 weekdaysShort
: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
8496 weekdaysMin
: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
8502 LLL
: 'D MMMM YYYY HH:mm',
8503 LLLL
: 'dddd, D MMMM YYYY HH:mm'
8506 sameDay
: '[Бүгін сағат] LT',
8507 nextDay
: '[Ертең сағат] LT',
8508 nextWeek
: 'dddd [сағат] LT',
8509 lastDay
: '[Кеше сағат] LT',
8510 lastWeek
: '[Өткен аптаның] dddd [сағат] LT',
8514 future
: '%s ішінде',
8516 s
: 'бірнеше секунд',
8528 ordinalParse
: /\d{1,2}-(ші|шы)/,
8529 ordinal : function (number
) {
8530 var a
= number
% 10,
8531 b
= number
>= 100 ? 100 : null;
8532 return number
+ (suffixes
$1[number
] || suffixes
$1[a
] || suffixes
$1[b
]);
8535 dow
: 1, // Monday is the first day of the week.
8536 doy
: 7 // The week that contains Jan 1st is the first week of the year.
8540 //! moment.js locale configuration
8541 //! locale : Cambodian [km]
8542 //! author : Kruy Vanna : https://github.com/kruyvanna
8544 hooks
.defineLocale('km', {
8545 months
: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
8546 monthsShort
: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
8547 weekdays
: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
8548 weekdaysShort
: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
8549 weekdaysMin
: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
8555 LLL
: 'D MMMM YYYY HH:mm',
8556 LLLL
: 'dddd, D MMMM YYYY HH:mm'
8559 sameDay
: '[ថ្ងៃនេះ ម៉ោង] LT',
8560 nextDay
: '[ស្អែក ម៉ោង] LT',
8561 nextWeek
: 'dddd [ម៉ោង] LT',
8562 lastDay
: '[ម្សិលមិញ ម៉ោង] LT',
8563 lastWeek
: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
8569 s
: 'ប៉ុន្មានវិនាទី',
8582 dow
: 1, // Monday is the first day of the week.
8583 doy
: 4 // The week that contains Jan 4th is the first week of the year.
8587 //! moment.js locale configuration
8588 //! locale : Korean [ko]
8589 //! author : Kyungwook, Park : https://github.com/kyungw00k
8590 //! author : Jeeeyul Lee <jeeeyul@gmail.com>
8592 hooks
.defineLocale('ko', {
8593 months
: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
8594 monthsShort
: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
8595 weekdays
: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
8596 weekdaysShort
: '일_월_화_수_목_금_토'.split('_'),
8597 weekdaysMin
: '일_월_화_수_목_금_토'.split('_'),
8602 LL
: 'YYYY년 MMMM D일',
8603 LLL
: 'YYYY년 MMMM D일 A h시 m분',
8604 LLLL
: 'YYYY년 MMMM D일 dddd A h시 m분'
8609 nextWeek
: 'dddd LT',
8611 lastWeek
: '지난주 dddd LT',
8630 ordinalParse
: /\d{1,2}일/,
8632 meridiemParse
: /오전|오후/,
8633 isPM : function (token
) {
8634 return token
=== '오후';
8636 meridiem : function (hour
, minute
, isUpper
) {
8637 return hour
< 12 ? '오전' : '오후';
8641 //! moment.js locale configuration
8642 //! locale : Kyrgyz [ky]
8643 //! author : Chyngyz Arystan uulu : https://github.com/chyngyz
8669 hooks
.defineLocale('ky', {
8670 months
: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
8671 monthsShort
: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
8672 weekdays
: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
8673 weekdaysShort
: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
8674 weekdaysMin
: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
8680 LLL
: 'D MMMM YYYY HH:mm',
8681 LLLL
: 'dddd, D MMMM YYYY HH:mm'
8684 sameDay
: '[Бүгүн саат] LT',
8685 nextDay
: '[Эртең саат] LT',
8686 nextWeek
: 'dddd [саат] LT',
8687 lastDay
: '[Кече саат] LT',
8688 lastWeek
: '[Өткен аптанын] dddd [күнү] [саат] LT',
8692 future
: '%s ичинде',
8694 s
: 'бирнече секунд',
8706 ordinalParse
: /\d{1,2}-(чи|чы|чү|чу)/,
8707 ordinal : function (number
) {
8708 var a
= number
% 10,
8709 b
= number
>= 100 ? 100 : null;
8710 return number
+ (suffixes
$2[number
] || suffixes
$2[a
] || suffixes
$2[b
]);
8713 dow
: 1, // Monday is the first day of the week.
8714 doy
: 7 // The week that contains Jan 1st is the first week of the year.
8718 //! moment.js locale configuration
8719 //! locale : Luxembourgish [lb]
8720 //! author : mweimerskirch : https://github.com/mweimerskirch
8721 //! author : David Raison : https://github.com/kwisatz
8723 function processRelativeTime
$3(number
, withoutSuffix
, key
, isFuture
) {
8725 'm': ['eng Minutt', 'enger Minutt'],
8726 'h': ['eng Stonn', 'enger Stonn'],
8727 'd': ['een Dag', 'engem Dag'],
8728 'M': ['ee Mount', 'engem Mount'],
8729 'y': ['ee Joer', 'engem Joer']
8731 return withoutSuffix
? format
[key
][0] : format
[key
][1];
8733 function processFutureTime(string
) {
8734 var number
= string
.substr(0, string
.indexOf(' '));
8735 if (eifelerRegelAppliesToNumber(number
)) {
8736 return 'a ' + string
;
8738 return 'an ' + string
;
8740 function processPastTime(string
) {
8741 var number
= string
.substr(0, string
.indexOf(' '));
8742 if (eifelerRegelAppliesToNumber(number
)) {
8743 return 'viru ' + string
;
8745 return 'virun ' + string
;
8748 * Returns true if the word before the given number loses the '-n' ending.
8749 * e.g. 'an 10 Deeg' but 'a 5 Deeg'
8751 * @param number {integer}
8752 * @returns {boolean}
8754 function eifelerRegelAppliesToNumber(number
) {
8755 number
= parseInt(number
, 10);
8756 if (isNaN(number
)) {
8760 // Negative Number --> always true
8762 } else if (number
< 10) {
8764 if (4 <= number
&& number
<= 7) {
8768 } else if (number
< 100) {
8770 var lastDigit
= number
% 10, firstDigit
= number
/ 10;
8771 if (lastDigit
=== 0) {
8772 return eifelerRegelAppliesToNumber(firstDigit
);
8774 return eifelerRegelAppliesToNumber(lastDigit
);
8775 } else if (number
< 10000) {
8776 // 3 or 4 digits --> recursively check first digit
8777 while (number
>= 10) {
8778 number
= number
/ 10;
8780 return eifelerRegelAppliesToNumber(number
);
8782 // Anything larger than 4 digits: recursively check first n-3 digits
8783 number
= number
/ 1000;
8784 return eifelerRegelAppliesToNumber(number
);
8788 hooks
.defineLocale('lb', {
8789 months
: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
8790 monthsShort
: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
8791 monthsParseExact
: true,
8792 weekdays
: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
8793 weekdaysShort
: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
8794 weekdaysMin
: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
8795 weekdaysParseExact
: true,
8798 LTS
: 'H:mm:ss [Auer]',
8801 LLL
: 'D. MMMM YYYY H:mm [Auer]',
8802 LLLL
: 'dddd, D. MMMM YYYY H:mm [Auer]'
8805 sameDay
: '[Haut um] LT',
8807 nextDay
: '[Muer um] LT',
8808 nextWeek
: 'dddd [um] LT',
8809 lastDay
: '[Gëschter um] LT',
8810 lastWeek: function () {
8811 // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
8812 switch (this.day()) {
8815 return '[Leschten] dddd [um] LT';
8817 return '[Leschte] dddd [um] LT';
8822 future
: processFutureTime
,
8823 past
: processPastTime
,
8824 s
: 'e puer Sekonnen',
8825 m
: processRelativeTime
$3,
8827 h
: processRelativeTime
$3,
8829 d
: processRelativeTime
$3,
8831 M
: processRelativeTime
$3,
8833 y
: processRelativeTime
$3,
8836 ordinalParse
: /\d{1,2}\./,
8839 dow
: 1, // Monday is the first day of the week.
8840 doy
: 4 // The week that contains Jan 4th is the first week of the year.
8844 //! moment.js locale configuration
8845 //! locale : Lao [lo]
8846 //! author : Ryan Hart : https://github.com/ryanhart2
8848 hooks
.defineLocale('lo', {
8849 months
: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
8850 monthsShort
: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
8851 weekdays
: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
8852 weekdaysShort
: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
8853 weekdaysMin
: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
8854 weekdaysParseExact
: true,
8860 LLL
: 'D MMMM YYYY HH:mm',
8861 LLLL
: 'ວັນdddd D MMMM YYYY HH:mm'
8863 meridiemParse
: /ຕອນເຊົ້າ|ຕອນແລງ/,
8864 isPM: function (input
) {
8865 return input
=== 'ຕອນແລງ';
8867 meridiem : function (hour
, minute
, isLower
) {
8875 sameDay
: '[ມື້ນີ້ເວລາ] LT',
8876 nextDay
: '[ມື້ອື່ນເວລາ] LT',
8877 nextWeek
: '[ວັນ]dddd[ໜ້າເວລາ] LT',
8878 lastDay
: '[ມື້ວານນີ້ເວລາ] LT',
8879 lastWeek
: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
8885 s
: 'ບໍ່ເທົ່າໃດວິນາທີ',
8897 ordinalParse
: /(ທີ່)\d{1,2}/,
8898 ordinal : function (number
) {
8899 return 'ທີ່' + number
;
8903 //! moment.js locale configuration
8904 //! locale : Lithuanian [lt]
8905 //! author : Mindaugas Mozūras : https://github.com/mmozuras
8908 'm' : 'minutė_minutės_minutę',
8909 'mm': 'minutės_minučių_minutes',
8910 'h' : 'valanda_valandos_valandą',
8911 'hh': 'valandos_valandų_valandas',
8912 'd' : 'diena_dienos_dieną',
8913 'dd': 'dienos_dienų_dienas',
8914 'M' : 'mėnuo_mėnesio_mėnesį',
8915 'MM': 'mėnesiai_mėnesių_mėnesius',
8916 'y' : 'metai_metų_metus',
8917 'yy': 'metai_metų_metus'
8919 function translateSeconds(number
, withoutSuffix
, key
, isFuture
) {
8920 if (withoutSuffix
) {
8921 return 'kelios sekundės';
8923 return isFuture
? 'kelių sekundžių' : 'kelias sekundes';
8926 function translateSingular(number
, withoutSuffix
, key
, isFuture
) {
8927 return withoutSuffix
? forms(key
)[0] : (isFuture
? forms(key
)[1] : forms(key
)[2]);
8929 function special(number
) {
8930 return number
% 10 === 0 || (number
> 10 && number
< 20);
8932 function forms(key
) {
8933 return units
[key
].split('_');
8935 function translate
$6(number
, withoutSuffix
, key
, isFuture
) {
8936 var result
= number
+ ' ';
8938 return result
+ translateSingular(number
, withoutSuffix
, key
[0], isFuture
);
8939 } else if (withoutSuffix
) {
8940 return result
+ (special(number
) ? forms(key
)[1] : forms(key
)[0]);
8943 return result
+ forms(key
)[1];
8945 return result
+ (special(number
) ? forms(key
)[1] : forms(key
)[2]);
8949 hooks
.defineLocale('lt', {
8951 format
: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
8952 standalone
: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
8953 isFormat
: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
8955 monthsShort
: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
8957 format
: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
8958 standalone
: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
8959 isFormat
: /dddd HH:mm/
8961 weekdaysShort
: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
8962 weekdaysMin
: 'S_P_A_T_K_Pn_Š'.split('_'),
8963 weekdaysParseExact
: true,
8968 LL
: 'YYYY [m.] MMMM D [d.]',
8969 LLL
: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
8970 LLLL
: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
8972 ll
: 'YYYY [m.] MMMM D [d.]',
8973 lll
: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
8974 llll
: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
8977 sameDay
: '[Šiandien] LT',
8978 nextDay
: '[Rytoj] LT',
8979 nextWeek
: 'dddd LT',
8980 lastDay
: '[Vakar] LT',
8981 lastWeek
: '[Praėjusį] dddd LT',
8987 s
: translateSeconds
,
8988 m
: translateSingular
,
8990 h
: translateSingular
,
8992 d
: translateSingular
,
8994 M
: translateSingular
,
8996 y
: translateSingular
,
8999 ordinalParse
: /\d{1,2}-oji/,
9000 ordinal : function (number
) {
9001 return number
+ '-oji';
9004 dow
: 1, // Monday is the first day of the week.
9005 doy
: 4 // The week that contains Jan 4th is the first week of the year.
9009 //! moment.js locale configuration
9010 //! locale : Latvian [lv]
9011 //! author : Kristaps Karlsons : https://github.com/skakri
9012 //! author : Jānis Elmeris : https://github.com/JanisE
9015 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
9016 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
9017 'h': 'stundas_stundām_stunda_stundas'.split('_'),
9018 'hh': 'stundas_stundām_stunda_stundas'.split('_'),
9019 'd': 'dienas_dienām_diena_dienas'.split('_'),
9020 'dd': 'dienas_dienām_diena_dienas'.split('_'),
9021 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
9022 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
9023 'y': 'gada_gadiem_gads_gadi'.split('_'),
9024 'yy': 'gada_gadiem_gads_gadi'.split('_')
9027 * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
9029 function format
$1(forms
, number
, withoutSuffix
) {
9030 if (withoutSuffix
) {
9031 // E.g. "21 minūte", "3 minūtes".
9032 return number
% 10 === 1 && number
% 100 !== 11 ? forms
[2] : forms
[3];
9034 // E.g. "21 minūtes" as in "pēc 21 minūtes".
9035 // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
9036 return number
% 10 === 1 && number
% 100 !== 11 ? forms
[0] : forms
[1];
9039 function relativeTimeWithPlural
$1(number
, withoutSuffix
, key
) {
9040 return number
+ ' ' + format
$1(units
$1[key
], number
, withoutSuffix
);
9042 function relativeTimeWithSingular(number
, withoutSuffix
, key
) {
9043 return format
$1(units
$1[key
], number
, withoutSuffix
);
9045 function relativeSeconds(number
, withoutSuffix
) {
9046 return withoutSuffix
? 'dažas sekundes' : 'dažām sekundēm';
9049 hooks
.defineLocale('lv', {
9050 months
: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
9051 monthsShort
: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
9052 weekdays
: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
9053 weekdaysShort
: 'Sv_P_O_T_C_Pk_S'.split('_'),
9054 weekdaysMin
: 'Sv_P_O_T_C_Pk_S'.split('_'),
9055 weekdaysParseExact
: true,
9060 LL
: 'YYYY. [gada] D. MMMM',
9061 LLL
: 'YYYY. [gada] D. MMMM, HH:mm',
9062 LLLL
: 'YYYY. [gada] D. MMMM, dddd, HH:mm'
9065 sameDay
: '[Šodien pulksten] LT',
9066 nextDay
: '[Rīt pulksten] LT',
9067 nextWeek
: 'dddd [pulksten] LT',
9068 lastDay
: '[Vakar pulksten] LT',
9069 lastWeek
: '[Pagājušā] dddd [pulksten] LT',
9075 s
: relativeSeconds
,
9076 m
: relativeTimeWithSingular
,
9077 mm
: relativeTimeWithPlural
$1,
9078 h
: relativeTimeWithSingular
,
9079 hh
: relativeTimeWithPlural
$1,
9080 d
: relativeTimeWithSingular
,
9081 dd
: relativeTimeWithPlural
$1,
9082 M
: relativeTimeWithSingular
,
9083 MM
: relativeTimeWithPlural
$1,
9084 y
: relativeTimeWithSingular
,
9085 yy
: relativeTimeWithPlural
$1
9087 ordinalParse
: /\d{1,2}\./,
9090 dow
: 1, // Monday is the first day of the week.
9091 doy
: 4 // The week that contains Jan 4th is the first week of the year.
9095 //! moment.js locale configuration
9096 //! locale : Montenegrin [me]
9097 //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
9100 words
: { //Different grammatical cases
9101 m
: ['jedan minut', 'jednog minuta'],
9102 mm
: ['minut', 'minuta', 'minuta'],
9103 h
: ['jedan sat', 'jednog sata'],
9104 hh
: ['sat', 'sata', 'sati'],
9105 dd
: ['dan', 'dana', 'dana'],
9106 MM
: ['mjesec', 'mjeseca', 'mjeseci'],
9107 yy
: ['godina', 'godine', 'godina']
9109 correctGrammaticalCase: function (number
, wordKey
) {
9110 return number
=== 1 ? wordKey
[0] : (number
>= 2 && number
<= 4 ? wordKey
[1] : wordKey
[2]);
9112 translate: function (number
, withoutSuffix
, key
) {
9113 var wordKey
= translator
.words
[key
];
9114 if (key
.length
=== 1) {
9115 return withoutSuffix
? wordKey
[0] : wordKey
[1];
9117 return number
+ ' ' + translator
.correctGrammaticalCase(number
, wordKey
);
9122 hooks
.defineLocale('me', {
9123 months
: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
9124 monthsShort
: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
9125 monthsParseExact
: true,
9126 weekdays
: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
9127 weekdaysShort
: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
9128 weekdaysMin
: 'ne_po_ut_sr_če_pe_su'.split('_'),
9129 weekdaysParseExact
: true,
9135 LLL
: 'D. MMMM YYYY H:mm',
9136 LLLL
: 'dddd, D. MMMM YYYY H:mm'
9139 sameDay
: '[danas u] LT',
9140 nextDay
: '[sjutra u] LT',
9142 nextWeek: function () {
9143 switch (this.day()) {
9145 return '[u] [nedjelju] [u] LT';
9147 return '[u] [srijedu] [u] LT';
9149 return '[u] [subotu] [u] LT';
9154 return '[u] dddd [u] LT';
9157 lastDay
: '[juče u] LT',
9158 lastWeek : function () {
9159 var lastWeekDays
= [
9160 '[prošle] [nedjelje] [u] LT',
9161 '[prošlog] [ponedjeljka] [u] LT',
9162 '[prošlog] [utorka] [u] LT',
9163 '[prošle] [srijede] [u] LT',
9164 '[prošlog] [četvrtka] [u] LT',
9165 '[prošlog] [petka] [u] LT',
9166 '[prošle] [subote] [u] LT'
9168 return lastWeekDays
[this.day()];
9175 s
: 'nekoliko sekundi',
9176 m
: translator
.translate
,
9177 mm
: translator
.translate
,
9178 h
: translator
.translate
,
9179 hh
: translator
.translate
,
9181 dd
: translator
.translate
,
9183 MM
: translator
.translate
,
9185 yy
: translator
.translate
9187 ordinalParse
: /\d{1,2}\./,
9190 dow
: 1, // Monday is the first day of the week.
9191 doy
: 7 // The week that contains Jan 1st is the first week of the year.
9195 //! moment.js locale configuration
9196 //! locale : Maori [mi]
9197 //! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
9199 hooks
.defineLocale('mi', {
9200 months
: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'),
9201 monthsShort
: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
9202 monthsRegex
: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
9203 monthsStrictRegex
: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
9204 monthsShortRegex
: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
9205 monthsShortStrictRegex
: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
9206 weekdays
: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
9207 weekdaysShort
: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
9208 weekdaysMin
: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
9214 LLL
: 'D MMMM YYYY [i] HH:mm',
9215 LLLL
: 'dddd, D MMMM YYYY [i] HH:mm'
9218 sameDay
: '[i teie mahana, i] LT',
9219 nextDay
: '[apopo i] LT',
9220 nextWeek
: 'dddd [i] LT',
9221 lastDay
: '[inanahi i] LT',
9222 lastWeek
: 'dddd [whakamutunga i] LT',
9226 future
: 'i roto i %s',
9228 s
: 'te hēkona ruarua',
9240 ordinalParse
: /\d{1,2}º/,
9243 dow
: 1, // Monday is the first day of the week.
9244 doy
: 4 // The week that contains Jan 4th is the first week of the year.
9248 //! moment.js locale configuration
9249 //! locale : Macedonian [mk]
9250 //! author : Borislav Mickov : https://github.com/B0k0
9252 hooks
.defineLocale('mk', {
9253 months
: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
9254 monthsShort
: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
9255 weekdays
: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
9256 weekdaysShort
: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
9257 weekdaysMin
: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
9263 LLL
: 'D MMMM YYYY H:mm',
9264 LLLL
: 'dddd, D MMMM YYYY H:mm'
9267 sameDay
: '[Денес во] LT',
9268 nextDay
: '[Утре во] LT',
9269 nextWeek
: '[Во] dddd [во] LT',
9270 lastDay
: '[Вчера во] LT',
9271 lastWeek : function () {
9272 switch (this.day()) {
9276 return '[Изминатата] dddd [во] LT';
9281 return '[Изминатиот] dddd [во] LT';
9287 future
: 'после %s',
9289 s
: 'неколку секунди',
9301 ordinalParse
: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
9302 ordinal : function (number
) {
9303 var lastDigit
= number
% 10,
9304 last2Digits
= number
% 100;
9306 return number
+ '-ев';
9307 } else if (last2Digits
=== 0) {
9308 return number
+ '-ен';
9309 } else if (last2Digits
> 10 && last2Digits
< 20) {
9310 return number
+ '-ти';
9311 } else if (lastDigit
=== 1) {
9312 return number
+ '-ви';
9313 } else if (lastDigit
=== 2) {
9314 return number
+ '-ри';
9315 } else if (lastDigit
=== 7 || lastDigit
=== 8) {
9316 return number
+ '-ми';
9318 return number
+ '-ти';
9322 dow
: 1, // Monday is the first day of the week.
9323 doy
: 7 // The week that contains Jan 1st is the first week of the year.
9327 //! moment.js locale configuration
9328 //! locale : Malayalam [ml]
9329 //! author : Floyd Pink : https://github.com/floydpink
9331 hooks
.defineLocale('ml', {
9332 months
: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
9333 monthsShort
: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
9334 monthsParseExact
: true,
9335 weekdays
: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
9336 weekdaysShort
: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
9337 weekdaysMin
: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
9340 LTS
: 'A h:mm:ss -നു',
9343 LLL
: 'D MMMM YYYY, A h:mm -നു',
9344 LLLL
: 'dddd, D MMMM YYYY, A h:mm -നു'
9347 sameDay
: '[ഇന്ന്] LT',
9348 nextDay
: '[നാളെ] LT',
9349 nextWeek
: 'dddd, LT',
9350 lastDay
: '[ഇന്നലെ] LT',
9351 lastWeek
: '[കഴിഞ്ഞ] dddd, LT',
9355 future
: '%s കഴിഞ്ഞ്',
9357 s
: 'അൽപ നിമിഷങ്ങൾ',
9369 meridiemParse
: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
9370 meridiemHour : function (hour
, meridiem
) {
9374 if ((meridiem
=== 'രാത്രി' && hour
>= 4) ||
9375 meridiem
=== 'ഉച്ച കഴിഞ്ഞ്' ||
9376 meridiem
=== 'വൈകുന്നേരം') {
9382 meridiem : function (hour
, minute
, isLower
) {
9385 } else if (hour
< 12) {
9387 } else if (hour
< 17) {
9388 return 'ഉച്ച കഴിഞ്ഞ്';
9389 } else if (hour
< 20) {
9390 return 'വൈകുന്നേരം';
9397 //! moment.js locale configuration
9398 //! locale : Marathi [mr]
9399 //! author : Harshad Kale : https://github.com/kalehv
9400 //! author : Vivek Athalye : https://github.com/vnathalye
9427 function relativeTimeMr(number
, withoutSuffix
, string
, isFuture
)
9430 if (withoutSuffix
) {
9432 case 's': output
= 'काही सेकंद'; break;
9433 case 'm': output
= 'एक मिनिट'; break;
9434 case 'mm': output
= '%d मिनिटे'; break;
9435 case 'h': output
= 'एक तास'; break;
9436 case 'hh': output
= '%d तास'; break;
9437 case 'd': output
= 'एक दिवस'; break;
9438 case 'dd': output
= '%d दिवस'; break;
9439 case 'M': output
= 'एक महिना'; break;
9440 case 'MM': output
= '%d महिने'; break;
9441 case 'y': output
= 'एक वर्ष'; break;
9442 case 'yy': output
= '%d वर्षे'; break;
9447 case 's': output
= 'काही सेकंदां'; break;
9448 case 'm': output
= 'एका मिनिटा'; break;
9449 case 'mm': output
= '%d मिनिटां'; break;
9450 case 'h': output
= 'एका तासा'; break;
9451 case 'hh': output
= '%d तासां'; break;
9452 case 'd': output
= 'एका दिवसा'; break;
9453 case 'dd': output
= '%d दिवसां'; break;
9454 case 'M': output
= 'एका महिन्या'; break;
9455 case 'MM': output
= '%d महिन्यां'; break;
9456 case 'y': output
= 'एका वर्षा'; break;
9457 case 'yy': output
= '%d वर्षां'; break;
9460 return output
.replace(/%d/i, number
);
9463 hooks
.defineLocale('mr', {
9464 months
: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
9465 monthsShort
: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
9466 monthsParseExact
: true,
9467 weekdays
: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
9468 weekdaysShort
: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
9469 weekdaysMin
: 'र_सो_मं_बु_गु_शु_श'.split('_'),
9471 LT
: 'A h:mm वाजता',
9472 LTS
: 'A h:mm:ss वाजता',
9475 LLL
: 'D MMMM YYYY, A h:mm वाजता',
9476 LLLL
: 'dddd, D MMMM YYYY, A h:mm वाजता'
9479 sameDay
: '[आज] LT',
9480 nextDay
: '[उद्या] LT',
9481 nextWeek
: 'dddd, LT',
9482 lastDay
: '[काल] LT',
9483 lastWeek
: '[मागील] dddd, LT',
9501 preparse: function (string
) {
9502 return string
.replace(/[१२३४५६७८९०]/g, function (match
) {
9503 return numberMap
$6[match
];
9506 postformat: function (string
) {
9507 return string
.replace(/\d/g, function (match
) {
9508 return symbolMap
$7[match
];
9511 meridiemParse
: /रात्री|सकाळी|दुपारी|सायंकाळी/,
9512 meridiemHour : function (hour
, meridiem
) {
9516 if (meridiem
=== 'रात्री') {
9517 return hour
< 4 ? hour
: hour
+ 12;
9518 } else if (meridiem
=== 'सकाळी') {
9520 } else if (meridiem
=== 'दुपारी') {
9521 return hour
>= 10 ? hour
: hour
+ 12;
9522 } else if (meridiem
=== 'सायंकाळी') {
9526 meridiem: function (hour
, minute
, isLower
) {
9529 } else if (hour
< 10) {
9531 } else if (hour
< 17) {
9533 } else if (hour
< 20) {
9540 dow
: 0, // Sunday is the first day of the week.
9541 doy
: 6 // The week that contains Jan 1st is the first week of the year.
9545 //! moment.js locale configuration
9546 //! locale : Malay [ms-my]
9547 //! note : DEPRECATED, the correct one is [ms]
9548 //! author : Weldan Jamili : https://github.com/weldan
9550 hooks
.defineLocale('ms-my', {
9551 months
: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
9552 monthsShort
: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
9553 weekdays
: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
9554 weekdaysShort
: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
9555 weekdaysMin
: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
9561 LLL
: 'D MMMM YYYY [pukul] HH.mm',
9562 LLLL
: 'dddd, D MMMM YYYY [pukul] HH.mm'
9564 meridiemParse
: /pagi|tengahari|petang|malam/,
9565 meridiemHour: function (hour
, meridiem
) {
9569 if (meridiem
=== 'pagi') {
9571 } else if (meridiem
=== 'tengahari') {
9572 return hour
>= 11 ? hour
: hour
+ 12;
9573 } else if (meridiem
=== 'petang' || meridiem
=== 'malam') {
9577 meridiem : function (hours
, minutes
, isLower
) {
9580 } else if (hours
< 15) {
9582 } else if (hours
< 19) {
9589 sameDay
: '[Hari ini pukul] LT',
9590 nextDay
: '[Esok pukul] LT',
9591 nextWeek
: 'dddd [pukul] LT',
9592 lastDay
: '[Kelmarin pukul] LT',
9593 lastWeek
: 'dddd [lepas pukul] LT',
9597 future
: 'dalam %s',
9598 past
: '%s yang lepas',
9599 s
: 'beberapa saat',
9612 dow
: 1, // Monday is the first day of the week.
9613 doy
: 7 // The week that contains Jan 1st is the first week of the year.
9617 //! moment.js locale configuration
9618 //! locale : Malay [ms]
9619 //! author : Weldan Jamili : https://github.com/weldan
9621 hooks
.defineLocale('ms', {
9622 months
: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
9623 monthsShort
: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
9624 weekdays
: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
9625 weekdaysShort
: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
9626 weekdaysMin
: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
9632 LLL
: 'D MMMM YYYY [pukul] HH.mm',
9633 LLLL
: 'dddd, D MMMM YYYY [pukul] HH.mm'
9635 meridiemParse
: /pagi|tengahari|petang|malam/,
9636 meridiemHour: function (hour
, meridiem
) {
9640 if (meridiem
=== 'pagi') {
9642 } else if (meridiem
=== 'tengahari') {
9643 return hour
>= 11 ? hour
: hour
+ 12;
9644 } else if (meridiem
=== 'petang' || meridiem
=== 'malam') {
9648 meridiem : function (hours
, minutes
, isLower
) {
9651 } else if (hours
< 15) {
9653 } else if (hours
< 19) {
9660 sameDay
: '[Hari ini pukul] LT',
9661 nextDay
: '[Esok pukul] LT',
9662 nextWeek
: 'dddd [pukul] LT',
9663 lastDay
: '[Kelmarin pukul] LT',
9664 lastWeek
: 'dddd [lepas pukul] LT',
9668 future
: 'dalam %s',
9669 past
: '%s yang lepas',
9670 s
: 'beberapa saat',
9683 dow
: 1, // Monday is the first day of the week.
9684 doy
: 7 // The week that contains Jan 1st is the first week of the year.
9688 //! moment.js locale configuration
9689 //! locale : Burmese [my]
9690 //! author : Squar team, mysquar.com
9691 //! author : David Rossellat : https://github.com/gholadr
9692 //! author : Tin Aung Lin : https://github.com/thanyawzinmin
9719 hooks
.defineLocale('my', {
9720 months
: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
9721 monthsShort
: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
9722 weekdays
: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
9723 weekdaysShort
: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
9724 weekdaysMin
: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
9731 LLL
: 'D MMMM YYYY HH:mm',
9732 LLLL
: 'dddd D MMMM YYYY HH:mm'
9735 sameDay
: '[ယနေ.] LT [မှာ]',
9736 nextDay
: '[မနက်ဖြန်] LT [မှာ]',
9737 nextWeek
: 'dddd LT [မှာ]',
9738 lastDay
: '[မနေ.က] LT [မှာ]',
9739 lastWeek
: '[ပြီးခဲ့သော] dddd LT [မှာ]',
9743 future
: 'လာမည့် %s မှာ',
9744 past
: 'လွန်ခဲ့သော %s က',
9745 s
: 'စက္ကန်.အနည်းငယ်',
9757 preparse: function (string
) {
9758 return string
.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match
) {
9759 return numberMap
$7[match
];
9762 postformat: function (string
) {
9763 return string
.replace(/\d/g, function (match
) {
9764 return symbolMap
$8[match
];
9768 dow
: 1, // Monday is the first day of the week.
9769 doy
: 4 // The week that contains Jan 1st is the first week of the year.
9773 //! moment.js locale configuration
9774 //! locale : Norwegian Bokmål [nb]
9775 //! authors : Espen Hovlandsdal : https://github.com/rexxars
9776 //! Sigurd Gartmann : https://github.com/sigurdga
9778 hooks
.defineLocale('nb', {
9779 months
: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
9780 monthsShort
: 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
9781 monthsParseExact
: true,
9782 weekdays
: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
9783 weekdaysShort
: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
9784 weekdaysMin
: 'sø_ma_ti_on_to_fr_lø'.split('_'),
9785 weekdaysParseExact
: true,
9790 LL
: 'D. MMMM YYYY',
9791 LLL
: 'D. MMMM YYYY [kl.] HH:mm',
9792 LLLL
: 'dddd D. MMMM YYYY [kl.] HH:mm'
9795 sameDay
: '[i dag kl.] LT',
9796 nextDay
: '[i morgen kl.] LT',
9797 nextWeek
: 'dddd [kl.] LT',
9798 lastDay
: '[i går kl.] LT',
9799 lastWeek
: '[forrige] dddd [kl.] LT',
9805 s
: 'noen sekunder',
9817 ordinalParse
: /\d{1,2}\./,
9820 dow
: 1, // Monday is the first day of the week.
9821 doy
: 4 // The week that contains Jan 4th is the first week of the year.
9825 //! moment.js locale configuration
9826 //! locale : Nepalese [ne]
9827 //! author : suvash : https://github.com/suvash
9854 hooks
.defineLocale('ne', {
9855 months
: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
9856 monthsShort
: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
9857 monthsParseExact
: true,
9858 weekdays
: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
9859 weekdaysShort
: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
9860 weekdaysMin
: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
9861 weekdaysParseExact
: true,
9863 LT
: 'Aको h:mm बजे',
9864 LTS
: 'Aको h:mm:ss बजे',
9867 LLL
: 'D MMMM YYYY, Aको h:mm बजे',
9868 LLLL
: 'dddd, D MMMM YYYY, Aको h:mm बजे'
9870 preparse: function (string
) {
9871 return string
.replace(/[१२३४५६७८९०]/g, function (match
) {
9872 return numberMap
$8[match
];
9875 postformat: function (string
) {
9876 return string
.replace(/\d/g, function (match
) {
9877 return symbolMap
$9[match
];
9880 meridiemParse
: /राति|बिहान|दिउँसो|साँझ/,
9881 meridiemHour : function (hour
, meridiem
) {
9885 if (meridiem
=== 'राति') {
9886 return hour
< 4 ? hour
: hour
+ 12;
9887 } else if (meridiem
=== 'बिहान') {
9889 } else if (meridiem
=== 'दिउँसो') {
9890 return hour
>= 10 ? hour
: hour
+ 12;
9891 } else if (meridiem
=== 'साँझ') {
9895 meridiem : function (hour
, minute
, isLower
) {
9898 } else if (hour
< 12) {
9900 } else if (hour
< 16) {
9902 } else if (hour
< 20) {
9909 sameDay
: '[आज] LT',
9910 nextDay
: '[भोलि] LT',
9911 nextWeek
: '[आउँदो] dddd[,] LT',
9912 lastDay
: '[हिजो] LT',
9913 lastWeek
: '[गएको] dddd[,] LT',
9932 dow
: 0, // Sunday is the first day of the week.
9933 doy
: 6 // The week that contains Jan 1st is the first week of the year.
9937 //! moment.js locale configuration
9938 //! locale : Dutch (Belgium) [nl-be]
9939 //! author : Joris Röling : https://github.com/jorisroling
9940 //! author : Jacob Middag : https://github.com/middagj
9942 var monthsShortWithDots
$1 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_');
9943 var monthsShortWithoutDots
$1 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
9945 var monthsParse
= [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
9946 var monthsRegex
$1 = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
9948 hooks
.defineLocale('nl-be', {
9949 months
: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
9950 monthsShort : function (m
, format
) {
9951 if (/-MMM-/.test(format
)) {
9952 return monthsShortWithoutDots
$1[m
.month()];
9954 return monthsShortWithDots
$1[m
.month()];
9958 monthsRegex
: monthsRegex
$1,
9959 monthsShortRegex
: monthsRegex
$1,
9960 monthsStrictRegex
: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
9961 monthsShortStrictRegex
: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
9963 monthsParse
: monthsParse
,
9964 longMonthsParse
: monthsParse
,
9965 shortMonthsParse
: monthsParse
,
9967 weekdays
: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
9968 weekdaysShort
: 'zo._ma._di._wo._do._vr._za.'.split('_'),
9969 weekdaysMin
: 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),
9970 weekdaysParseExact
: true,
9976 LLL
: 'D MMMM YYYY HH:mm',
9977 LLLL
: 'dddd D MMMM YYYY HH:mm'
9980 sameDay
: '[vandaag om] LT',
9981 nextDay
: '[morgen om] LT',
9982 nextWeek
: 'dddd [om] LT',
9983 lastDay
: '[gisteren om] LT',
9984 lastWeek
: '[afgelopen] dddd [om] LT',
9989 past
: '%s geleden',
9990 s
: 'een paar seconden',
10002 ordinalParse
: /\d{1,2}(ste|de)/,
10003 ordinal : function (number
) {
10004 return number
+ ((number
=== 1 || number
=== 8 || number
>= 20) ? 'ste' : 'de');
10007 dow
: 1, // Monday is the first day of the week.
10008 doy
: 4 // The week that contains Jan 4th is the first week of the year.
10012 //! moment.js locale configuration
10013 //! locale : Dutch [nl]
10014 //! author : Joris Röling : https://github.com/jorisroling
10015 //! author : Jacob Middag : https://github.com/middagj
10017 var monthsShortWithDots
$2 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_');
10018 var monthsShortWithoutDots
$2 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
10020 var monthsParse
$1 = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
10021 var monthsRegex
$2 = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
10023 hooks
.defineLocale('nl', {
10024 months
: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
10025 monthsShort : function (m
, format
) {
10026 if (/-MMM-/.test(format
)) {
10027 return monthsShortWithoutDots
$2[m
.month()];
10029 return monthsShortWithDots
$2[m
.month()];
10033 monthsRegex
: monthsRegex
$2,
10034 monthsShortRegex
: monthsRegex
$2,
10035 monthsStrictRegex
: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
10036 monthsShortStrictRegex
: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
10038 monthsParse
: monthsParse
$1,
10039 longMonthsParse
: monthsParse
$1,
10040 shortMonthsParse
: monthsParse
$1,
10042 weekdays
: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
10043 weekdaysShort
: 'zo._ma._di._wo._do._vr._za.'.split('_'),
10044 weekdaysMin
: 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),
10045 weekdaysParseExact
: true,
10050 LL
: 'D MMMM YYYY',
10051 LLL
: 'D MMMM YYYY HH:mm',
10052 LLLL
: 'dddd D MMMM YYYY HH:mm'
10055 sameDay
: '[vandaag om] LT',
10056 nextDay
: '[morgen om] LT',
10057 nextWeek
: 'dddd [om] LT',
10058 lastDay
: '[gisteren om] LT',
10059 lastWeek
: '[afgelopen] dddd [om] LT',
10063 future
: 'over %s',
10064 past
: '%s geleden',
10065 s
: 'een paar seconden',
10077 ordinalParse
: /\d{1,2}(ste|de)/,
10078 ordinal : function (number
) {
10079 return number
+ ((number
=== 1 || number
=== 8 || number
>= 20) ? 'ste' : 'de');
10082 dow
: 1, // Monday is the first day of the week.
10083 doy
: 4 // The week that contains Jan 4th is the first week of the year.
10087 //! moment.js locale configuration
10088 //! locale : Nynorsk [nn]
10089 //! author : https://github.com/mechuwind
10091 hooks
.defineLocale('nn', {
10092 months
: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
10093 monthsShort
: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
10094 weekdays
: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
10095 weekdaysShort
: 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
10096 weekdaysMin
: 'su_må_ty_on_to_fr_lø'.split('_'),
10101 LL
: 'D. MMMM YYYY',
10102 LLL
: 'D. MMMM YYYY [kl.] H:mm',
10103 LLLL
: 'dddd D. MMMM YYYY [kl.] HH:mm'
10106 sameDay
: '[I dag klokka] LT',
10107 nextDay
: '[I morgon klokka] LT',
10108 nextWeek
: 'dddd [klokka] LT',
10109 lastDay
: '[I går klokka] LT',
10110 lastWeek
: '[Føregåande] dddd [klokka] LT',
10116 s
: 'nokre sekund',
10128 ordinalParse
: /\d{1,2}\./,
10131 dow
: 1, // Monday is the first day of the week.
10132 doy
: 4 // The week that contains Jan 4th is the first week of the year.
10136 //! moment.js locale configuration
10137 //! locale : Punjabi (India) [pa-in]
10138 //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
10140 var symbolMap
$10 = {
10152 var numberMap
$9 = {
10165 hooks
.defineLocale('pa-in', {
10166 // There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi.
10167 months
: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
10168 monthsShort
: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
10169 weekdays
: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
10170 weekdaysShort
: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
10171 weekdaysMin
: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
10174 LTS
: 'A h:mm:ss ਵਜੇ',
10176 LL
: 'D MMMM YYYY',
10177 LLL
: 'D MMMM YYYY, A h:mm ਵਜੇ',
10178 LLLL
: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
10181 sameDay
: '[ਅਜ] LT',
10182 nextDay
: '[ਕਲ] LT',
10183 nextWeek
: 'dddd, LT',
10184 lastDay
: '[ਕਲ] LT',
10185 lastWeek
: '[ਪਿਛਲੇ] dddd, LT',
10189 future
: '%s ਵਿੱਚ',
10203 preparse: function (string
) {
10204 return string
.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match
) {
10205 return numberMap
$9[match
];
10208 postformat: function (string
) {
10209 return string
.replace(/\d/g, function (match
) {
10210 return symbolMap
$10[match
];
10213 // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
10214 // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
10215 meridiemParse
: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
10216 meridiemHour : function (hour
, meridiem
) {
10220 if (meridiem
=== 'ਰਾਤ') {
10221 return hour
< 4 ? hour
: hour
+ 12;
10222 } else if (meridiem
=== 'ਸਵੇਰ') {
10224 } else if (meridiem
=== 'ਦੁਪਹਿਰ') {
10225 return hour
>= 10 ? hour
: hour
+ 12;
10226 } else if (meridiem
=== 'ਸ਼ਾਮ') {
10230 meridiem : function (hour
, minute
, isLower
) {
10233 } else if (hour
< 10) {
10235 } else if (hour
< 17) {
10237 } else if (hour
< 20) {
10244 dow
: 0, // Sunday is the first day of the week.
10245 doy
: 6 // The week that contains Jan 1st is the first week of the year.
10249 //! moment.js locale configuration
10250 //! locale : Polish [pl]
10251 //! author : Rafal Hirsz : https://github.com/evoL
10253 var monthsNominative
= 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_');
10254 var monthsSubjective
= 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
10255 function plural
$3(n
) {
10256 return (n
% 10 < 5) && (n
% 10 > 1) && ((~~(n
/ 10) % 10) !== 1);
10258 function translate
$7(number
, withoutSuffix
, key
) {
10259 var result
= number
+ ' ';
10262 return withoutSuffix
? 'minuta' : 'minutę';
10264 return result
+ (plural
$3(number
) ? 'minuty' : 'minut');
10266 return withoutSuffix
? 'godzina' : 'godzinę';
10268 return result
+ (plural
$3(number
) ? 'godziny' : 'godzin');
10270 return result
+ (plural
$3(number
) ? 'miesiące' : 'miesięcy');
10272 return result
+ (plural
$3(number
) ? 'lata' : 'lat');
10276 hooks
.defineLocale('pl', {
10277 months : function (momentToFormat
, format
) {
10278 if (format
=== '') {
10279 // Hack: if format empty we know this is used to generate
10280 // RegExp by moment. Give then back both valid forms of months
10281 // in RegExp ready format.
10282 return '(' + monthsSubjective
[momentToFormat
.month()] + '|' + monthsNominative
[momentToFormat
.month()] + ')';
10283 } else if (/D MMMM/.test(format
)) {
10284 return monthsSubjective
[momentToFormat
.month()];
10286 return monthsNominative
[momentToFormat
.month()];
10289 monthsShort
: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
10290 weekdays
: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
10291 weekdaysShort
: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
10292 weekdaysMin
: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
10297 LL
: 'D MMMM YYYY',
10298 LLL
: 'D MMMM YYYY HH:mm',
10299 LLLL
: 'dddd, D MMMM YYYY HH:mm'
10302 sameDay
: '[Dziś o] LT',
10303 nextDay
: '[Jutro o] LT',
10304 nextWeek
: '[W] dddd [o] LT',
10305 lastDay
: '[Wczoraj o] LT',
10306 lastWeek: function () {
10307 switch (this.day()) {
10309 return '[W zeszłą niedzielę o] LT';
10311 return '[W zeszłą środę o] LT';
10313 return '[W zeszłą sobotę o] LT';
10315 return '[W zeszły] dddd [o] LT';
10323 s
: 'kilka sekund',
10335 ordinalParse
: /\d{1,2}\./,
10338 dow
: 1, // Monday is the first day of the week.
10339 doy
: 4 // The week that contains Jan 4th is the first week of the year.
10343 //! moment.js locale configuration
10344 //! locale : Portuguese (Brazil) [pt-br]
10345 //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
10347 hooks
.defineLocale('pt-br', {
10348 months
: 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
10349 monthsShort
: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
10350 weekdays
: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
10351 weekdaysShort
: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
10352 weekdaysMin
: 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),
10353 weekdaysParseExact
: true,
10358 LL
: 'D [de] MMMM [de] YYYY',
10359 LLL
: 'D [de] MMMM [de] YYYY [às] HH:mm',
10360 LLLL
: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
10363 sameDay
: '[Hoje às] LT',
10364 nextDay
: '[Amanhã às] LT',
10365 nextWeek
: 'dddd [às] LT',
10366 lastDay
: '[Ontem às] LT',
10367 lastWeek: function () {
10368 return (this.day() === 0 || this.day() === 6) ?
10369 '[Último] dddd [às] LT' : // Saturday + Sunday
10370 '[Última] dddd [às] LT'; // Monday - Friday
10377 s
: 'poucos segundos',
10389 ordinalParse
: /\d{1,2}º/,
10393 //! moment.js locale configuration
10394 //! locale : Portuguese [pt]
10395 //! author : Jefferson : https://github.com/jalex79
10397 hooks
.defineLocale('pt', {
10398 months
: 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
10399 monthsShort
: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
10400 weekdays
: 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),
10401 weekdaysShort
: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
10402 weekdaysMin
: 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),
10403 weekdaysParseExact
: true,
10408 LL
: 'D [de] MMMM [de] YYYY',
10409 LLL
: 'D [de] MMMM [de] YYYY HH:mm',
10410 LLLL
: 'dddd, D [de] MMMM [de] YYYY HH:mm'
10413 sameDay
: '[Hoje às] LT',
10414 nextDay
: '[Amanhã às] LT',
10415 nextWeek
: 'dddd [às] LT',
10416 lastDay
: '[Ontem às] LT',
10417 lastWeek: function () {
10418 return (this.day() === 0 || this.day() === 6) ?
10419 '[Último] dddd [às] LT' : // Saturday + Sunday
10420 '[Última] dddd [às] LT'; // Monday - Friday
10439 ordinalParse
: /\d{1,2}º/,
10442 dow
: 1, // Monday is the first day of the week.
10443 doy
: 4 // The week that contains Jan 4th is the first week of the year.
10447 //! moment.js locale configuration
10448 //! locale : Romanian [ro]
10449 //! author : Vlad Gurdiga : https://github.com/gurdiga
10450 //! author : Valentin Agachi : https://github.com/avaly
10452 function relativeTimeWithPlural
$2(number
, withoutSuffix
, key
) {
10461 if (number
% 100 >= 20 || (number
>= 100 && number
% 100 === 0)) {
10462 separator
= ' de ';
10464 return number
+ separator
+ format
[key
];
10467 hooks
.defineLocale('ro', {
10468 months
: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
10469 monthsShort
: 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
10470 monthsParseExact
: true,
10471 weekdays
: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
10472 weekdaysShort
: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
10473 weekdaysMin
: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
10478 LL
: 'D MMMM YYYY',
10479 LLL
: 'D MMMM YYYY H:mm',
10480 LLLL
: 'dddd, D MMMM YYYY H:mm'
10483 sameDay
: '[azi la] LT',
10484 nextDay
: '[mâine la] LT',
10485 nextWeek
: 'dddd [la] LT',
10486 lastDay
: '[ieri la] LT',
10487 lastWeek
: '[fosta] dddd [la] LT',
10491 future
: 'peste %s',
10492 past
: '%s în urmă',
10493 s
: 'câteva secunde',
10495 mm
: relativeTimeWithPlural
$2,
10497 hh
: relativeTimeWithPlural
$2,
10499 dd
: relativeTimeWithPlural
$2,
10501 MM
: relativeTimeWithPlural
$2,
10503 yy
: relativeTimeWithPlural
$2
10506 dow
: 1, // Monday is the first day of the week.
10507 doy
: 7 // The week that contains Jan 1st is the first week of the year.
10511 //! moment.js locale configuration
10512 //! locale : Russian [ru]
10513 //! author : Viktorminator : https://github.com/Viktorminator
10514 //! Author : Menelion Elensúle : https://github.com/Oire
10515 //! author : Коренберг Марк : https://github.com/socketpair
10517 function plural
$4(word
, num
) {
10518 var forms
= word
.split('_');
10519 return num
% 10 === 1 && num
% 100 !== 11 ? forms
[0] : (num
% 10 >= 2 && num
% 10 <= 4 && (num
% 100 < 10 || num
% 100 >= 20) ? forms
[1] : forms
[2]);
10521 function relativeTimeWithPlural
$3(number
, withoutSuffix
, key
) {
10523 'mm': withoutSuffix
? 'минута_минуты_минут' : 'минуту_минуты_минут',
10524 'hh': 'час_часа_часов',
10525 'dd': 'день_дня_дней',
10526 'MM': 'месяц_месяца_месяцев',
10527 'yy': 'год_года_лет'
10530 return withoutSuffix
? 'минута' : 'минуту';
10533 return number
+ ' ' + plural
$4(format
[key
], +number
);
10536 var monthsParse
$2 = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
10538 // http://new.gramota.ru/spravka/rules/139-prop : § 103
10539 // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
10540 // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
10541 hooks
.defineLocale('ru', {
10543 format
: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
10544 standalone
: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
10547 // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ?
10548 format
: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
10549 standalone
: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
10552 standalone
: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
10553 format
: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
10554 isFormat
: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/
10556 weekdaysShort
: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
10557 weekdaysMin
: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
10558 monthsParse
: monthsParse
$2,
10559 longMonthsParse
: monthsParse
$2,
10560 shortMonthsParse
: monthsParse
$2,
10562 // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
10563 monthsRegex
: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
10565 // копия предыдущего
10566 monthsShortRegex
: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
10568 // полные названия с падежами
10569 monthsStrictRegex
: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
10571 // Выражение, которое соотвествует только сокращённым формам
10572 monthsShortStrictRegex
: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
10577 LL
: 'D MMMM YYYY г.',
10578 LLL
: 'D MMMM YYYY г., HH:mm',
10579 LLLL
: 'dddd, D MMMM YYYY г., HH:mm'
10582 sameDay
: '[Сегодня в] LT',
10583 nextDay
: '[Завтра в] LT',
10584 lastDay
: '[Вчера в] LT',
10585 nextWeek: function (now
) {
10586 if (now
.week() !== this.week()) {
10587 switch (this.day()) {
10589 return '[В следующее] dddd [в] LT';
10593 return '[В следующий] dddd [в] LT';
10597 return '[В следующую] dddd [в] LT';
10600 if (this.day() === 2) {
10601 return '[Во] dddd [в] LT';
10603 return '[В] dddd [в] LT';
10607 lastWeek: function (now
) {
10608 if (now
.week() !== this.week()) {
10609 switch (this.day()) {
10611 return '[В прошлое] dddd [в] LT';
10615 return '[В прошлый] dddd [в] LT';
10619 return '[В прошлую] dddd [в] LT';
10622 if (this.day() === 2) {
10623 return '[Во] dddd [в] LT';
10625 return '[В] dddd [в] LT';
10632 future
: 'через %s',
10634 s
: 'несколько секунд',
10635 m
: relativeTimeWithPlural
$3,
10636 mm
: relativeTimeWithPlural
$3,
10638 hh
: relativeTimeWithPlural
$3,
10640 dd
: relativeTimeWithPlural
$3,
10642 MM
: relativeTimeWithPlural
$3,
10644 yy
: relativeTimeWithPlural
$3
10646 meridiemParse
: /ночи|утра|дня|вечера/i,
10647 isPM : function (input
) {
10648 return /^(дня|вечера)$/.test(input
);
10650 meridiem : function (hour
, minute
, isLower
) {
10653 } else if (hour
< 12) {
10655 } else if (hour
< 17) {
10661 ordinalParse
: /\d{1,2}-(й|го|я)/,
10662 ordinal: function (number
, period
) {
10667 return number
+ '-й';
10669 return number
+ '-го';
10672 return number
+ '-я';
10678 dow
: 1, // Monday is the first day of the week.
10679 doy
: 7 // The week that contains Jan 1st is the first week of the year.
10683 //! moment.js locale configuration
10684 //! locale : Northern Sami [se]
10685 //! authors : Bård Rolstad Henriksen : https://github.com/karamell
10688 hooks
.defineLocale('se', {
10689 months
: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'),
10690 monthsShort
: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
10691 weekdays
: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
10692 weekdaysShort
: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
10693 weekdaysMin
: 's_v_m_g_d_b_L'.split('_'),
10698 LL
: 'MMMM D. [b.] YYYY',
10699 LLL
: 'MMMM D. [b.] YYYY [ti.] HH:mm',
10700 LLLL
: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
10703 sameDay
: '[otne ti] LT',
10704 nextDay
: '[ihttin ti] LT',
10705 nextWeek
: 'dddd [ti] LT',
10706 lastDay
: '[ikte ti] LT',
10707 lastWeek
: '[ovddit] dddd [ti] LT',
10711 future
: '%s geažes',
10713 s
: 'moadde sekunddat',
10714 m
: 'okta minuhta',
10715 mm
: '%d minuhtat',
10719 dd
: '%d beaivvit',
10725 ordinalParse
: /\d{1,2}\./,
10728 dow
: 1, // Monday is the first day of the week.
10729 doy
: 4 // The week that contains Jan 4th is the first week of the year.
10733 //! moment.js locale configuration
10734 //! locale : Sinhalese [si]
10735 //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
10738 hooks
.defineLocale('si', {
10739 months
: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
10740 monthsShort
: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
10741 weekdays
: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
10742 weekdaysShort
: 'ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන'.split('_'),
10743 weekdaysMin
: 'ඉ_ස_අ_බ_බ්ර_සි_සෙ'.split('_'),
10744 weekdaysParseExact
: true,
10749 LL
: 'YYYY MMMM D',
10750 LLL
: 'YYYY MMMM D, a h:mm',
10751 LLLL
: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
10754 sameDay
: '[අද] LT[ට]',
10755 nextDay
: '[හෙට] LT[ට]',
10756 nextWeek
: 'dddd LT[ට]',
10757 lastDay
: '[ඊයේ] LT[ට]',
10758 lastWeek
: '[පසුගිය] dddd LT[ට]',
10764 s
: 'තත්පර කිහිපය',
10766 mm
: 'මිනිත්තු %d',
10776 ordinalParse
: /\d{1,2} වැනි/,
10777 ordinal : function (number
) {
10778 return number
+ ' වැනි';
10780 meridiemParse
: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
10781 isPM : function (input
) {
10782 return input
=== 'ප.ව.' || input
=== 'පස් වරු';
10784 meridiem : function (hours
, minutes
, isLower
) {
10786 return isLower
? 'ප.ව.' : 'පස් වරු';
10788 return isLower
? 'පෙ.ව.' : 'පෙර වරු';
10793 //! moment.js locale configuration
10794 //! locale : Slovak [sk]
10795 //! author : Martin Minka : https://github.com/k2s
10796 //! based on work of petrbela : https://github.com/petrbela
10798 var months
$6 = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_');
10799 var monthsShort
$4 = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
10800 function plural
$5(n
) {
10801 return (n
> 1) && (n
< 5);
10803 function translate
$8(number
, withoutSuffix
, key
, isFuture
) {
10804 var result
= number
+ ' ';
10806 case 's': // a few seconds / in a few seconds / a few seconds ago
10807 return (withoutSuffix
|| isFuture
) ? 'pár sekúnd' : 'pár sekundami';
10808 case 'm': // a minute / in a minute / a minute ago
10809 return withoutSuffix
? 'minúta' : (isFuture
? 'minútu' : 'minútou');
10810 case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
10811 if (withoutSuffix
|| isFuture
) {
10812 return result
+ (plural
$5(number
) ? 'minúty' : 'minút');
10814 return result
+ 'minútami';
10817 case 'h': // an hour / in an hour / an hour ago
10818 return withoutSuffix
? 'hodina' : (isFuture
? 'hodinu' : 'hodinou');
10819 case 'hh': // 9 hours / in 9 hours / 9 hours ago
10820 if (withoutSuffix
|| isFuture
) {
10821 return result
+ (plural
$5(number
) ? 'hodiny' : 'hodín');
10823 return result
+ 'hodinami';
10826 case 'd': // a day / in a day / a day ago
10827 return (withoutSuffix
|| isFuture
) ? 'deň' : 'dňom';
10828 case 'dd': // 9 days / in 9 days / 9 days ago
10829 if (withoutSuffix
|| isFuture
) {
10830 return result
+ (plural
$5(number
) ? 'dni' : 'dní');
10832 return result
+ 'dňami';
10835 case 'M': // a month / in a month / a month ago
10836 return (withoutSuffix
|| isFuture
) ? 'mesiac' : 'mesiacom';
10837 case 'MM': // 9 months / in 9 months / 9 months ago
10838 if (withoutSuffix
|| isFuture
) {
10839 return result
+ (plural
$5(number
) ? 'mesiace' : 'mesiacov');
10841 return result
+ 'mesiacmi';
10844 case 'y': // a year / in a year / a year ago
10845 return (withoutSuffix
|| isFuture
) ? 'rok' : 'rokom';
10846 case 'yy': // 9 years / in 9 years / 9 years ago
10847 if (withoutSuffix
|| isFuture
) {
10848 return result
+ (plural
$5(number
) ? 'roky' : 'rokov');
10850 return result
+ 'rokmi';
10856 hooks
.defineLocale('sk', {
10858 monthsShort
: monthsShort
$4,
10859 weekdays
: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
10860 weekdaysShort
: 'ne_po_ut_st_št_pi_so'.split('_'),
10861 weekdaysMin
: 'ne_po_ut_st_št_pi_so'.split('_'),
10866 LL
: 'D. MMMM YYYY',
10867 LLL
: 'D. MMMM YYYY H:mm',
10868 LLLL
: 'dddd D. MMMM YYYY H:mm'
10871 sameDay
: '[dnes o] LT',
10872 nextDay
: '[zajtra o] LT',
10873 nextWeek: function () {
10874 switch (this.day()) {
10876 return '[v nedeľu o] LT';
10879 return '[v] dddd [o] LT';
10881 return '[v stredu o] LT';
10883 return '[vo štvrtok o] LT';
10885 return '[v piatok o] LT';
10887 return '[v sobotu o] LT';
10890 lastDay
: '[včera o] LT',
10891 lastWeek: function () {
10892 switch (this.day()) {
10894 return '[minulú nedeľu o] LT';
10897 return '[minulý] dddd [o] LT';
10899 return '[minulú stredu o] LT';
10902 return '[minulý] dddd [o] LT';
10904 return '[minulú sobotu o] LT';
10924 ordinalParse
: /\d{1,2}\./,
10927 dow
: 1, // Monday is the first day of the week.
10928 doy
: 4 // The week that contains Jan 4th is the first week of the year.
10932 //! moment.js locale configuration
10933 //! locale : Slovenian [sl]
10934 //! author : Robert Sedovšek : https://github.com/sedovsek
10936 function processRelativeTime
$4(number
, withoutSuffix
, key
, isFuture
) {
10937 var result
= number
+ ' ';
10940 return withoutSuffix
|| isFuture
? 'nekaj sekund' : 'nekaj sekundami';
10942 return withoutSuffix
? 'ena minuta' : 'eno minuto';
10944 if (number
=== 1) {
10945 result
+= withoutSuffix
? 'minuta' : 'minuto';
10946 } else if (number
=== 2) {
10947 result
+= withoutSuffix
|| isFuture
? 'minuti' : 'minutama';
10948 } else if (number
< 5) {
10949 result
+= withoutSuffix
|| isFuture
? 'minute' : 'minutami';
10951 result
+= withoutSuffix
|| isFuture
? 'minut' : 'minutami';
10955 return withoutSuffix
? 'ena ura' : 'eno uro';
10957 if (number
=== 1) {
10958 result
+= withoutSuffix
? 'ura' : 'uro';
10959 } else if (number
=== 2) {
10960 result
+= withoutSuffix
|| isFuture
? 'uri' : 'urama';
10961 } else if (number
< 5) {
10962 result
+= withoutSuffix
|| isFuture
? 'ure' : 'urami';
10964 result
+= withoutSuffix
|| isFuture
? 'ur' : 'urami';
10968 return withoutSuffix
|| isFuture
? 'en dan' : 'enim dnem';
10970 if (number
=== 1) {
10971 result
+= withoutSuffix
|| isFuture
? 'dan' : 'dnem';
10972 } else if (number
=== 2) {
10973 result
+= withoutSuffix
|| isFuture
? 'dni' : 'dnevoma';
10975 result
+= withoutSuffix
|| isFuture
? 'dni' : 'dnevi';
10979 return withoutSuffix
|| isFuture
? 'en mesec' : 'enim mesecem';
10981 if (number
=== 1) {
10982 result
+= withoutSuffix
|| isFuture
? 'mesec' : 'mesecem';
10983 } else if (number
=== 2) {
10984 result
+= withoutSuffix
|| isFuture
? 'meseca' : 'mesecema';
10985 } else if (number
< 5) {
10986 result
+= withoutSuffix
|| isFuture
? 'mesece' : 'meseci';
10988 result
+= withoutSuffix
|| isFuture
? 'mesecev' : 'meseci';
10992 return withoutSuffix
|| isFuture
? 'eno leto' : 'enim letom';
10994 if (number
=== 1) {
10995 result
+= withoutSuffix
|| isFuture
? 'leto' : 'letom';
10996 } else if (number
=== 2) {
10997 result
+= withoutSuffix
|| isFuture
? 'leti' : 'letoma';
10998 } else if (number
< 5) {
10999 result
+= withoutSuffix
|| isFuture
? 'leta' : 'leti';
11001 result
+= withoutSuffix
|| isFuture
? 'let' : 'leti';
11007 hooks
.defineLocale('sl', {
11008 months
: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
11009 monthsShort
: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
11010 monthsParseExact
: true,
11011 weekdays
: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
11012 weekdaysShort
: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
11013 weekdaysMin
: 'ne_po_to_sr_če_pe_so'.split('_'),
11014 weekdaysParseExact
: true,
11019 LL
: 'D. MMMM YYYY',
11020 LLL
: 'D. MMMM YYYY H:mm',
11021 LLLL
: 'dddd, D. MMMM YYYY H:mm'
11024 sameDay
: '[danes ob] LT',
11025 nextDay
: '[jutri ob] LT',
11027 nextWeek : function () {
11028 switch (this.day()) {
11030 return '[v] [nedeljo] [ob] LT';
11032 return '[v] [sredo] [ob] LT';
11034 return '[v] [soboto] [ob] LT';
11039 return '[v] dddd [ob] LT';
11042 lastDay
: '[včeraj ob] LT',
11043 lastWeek : function () {
11044 switch (this.day()) {
11046 return '[prejšnjo] [nedeljo] [ob] LT';
11048 return '[prejšnjo] [sredo] [ob] LT';
11050 return '[prejšnjo] [soboto] [ob] LT';
11055 return '[prejšnji] dddd [ob] LT';
11063 s
: processRelativeTime
$4,
11064 m
: processRelativeTime
$4,
11065 mm
: processRelativeTime
$4,
11066 h
: processRelativeTime
$4,
11067 hh
: processRelativeTime
$4,
11068 d
: processRelativeTime
$4,
11069 dd
: processRelativeTime
$4,
11070 M
: processRelativeTime
$4,
11071 MM
: processRelativeTime
$4,
11072 y
: processRelativeTime
$4,
11073 yy
: processRelativeTime
$4
11075 ordinalParse
: /\d{1,2}\./,
11078 dow
: 1, // Monday is the first day of the week.
11079 doy
: 7 // The week that contains Jan 1st is the first week of the year.
11083 //! moment.js locale configuration
11084 //! locale : Albanian [sq]
11085 //! author : Flakërim Ismani : https://github.com/flakerimi
11086 //! author : Menelion Elensúle : https://github.com/Oire
11087 //! author : Oerd Cukalla : https://github.com/oerd
11089 hooks
.defineLocale('sq', {
11090 months
: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
11091 monthsShort
: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
11092 weekdays
: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
11093 weekdaysShort
: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
11094 weekdaysMin
: 'D_H_Ma_Më_E_P_Sh'.split('_'),
11095 weekdaysParseExact
: true,
11096 meridiemParse
: /PD|MD/,
11097 isPM: function (input
) {
11098 return input
.charAt(0) === 'M';
11100 meridiem : function (hours
, minutes
, isLower
) {
11101 return hours
< 12 ? 'PD' : 'MD';
11107 LL
: 'D MMMM YYYY',
11108 LLL
: 'D MMMM YYYY HH:mm',
11109 LLLL
: 'dddd, D MMMM YYYY HH:mm'
11112 sameDay
: '[Sot në] LT',
11113 nextDay
: '[Nesër në] LT',
11114 nextWeek
: 'dddd [në] LT',
11115 lastDay
: '[Dje në] LT',
11116 lastWeek
: 'dddd [e kaluar në] LT',
11121 past
: '%s më parë',
11122 s
: 'disa sekonda',
11134 ordinalParse
: /\d{1,2}\./,
11137 dow
: 1, // Monday is the first day of the week.
11138 doy
: 4 // The week that contains Jan 4th is the first week of the year.
11142 //! moment.js locale configuration
11143 //! locale : Serbian Cyrillic [sr-cyrl]
11144 //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
11146 var translator
$1 = {
11147 words
: { //Different grammatical cases
11148 m
: ['један минут', 'једне минуте'],
11149 mm
: ['минут', 'минуте', 'минута'],
11150 h
: ['један сат', 'једног сата'],
11151 hh
: ['сат', 'сата', 'сати'],
11152 dd
: ['дан', 'дана', 'дана'],
11153 MM
: ['месец', 'месеца', 'месеци'],
11154 yy
: ['година', 'године', 'година']
11156 correctGrammaticalCase: function (number
, wordKey
) {
11157 return number
=== 1 ? wordKey
[0] : (number
>= 2 && number
<= 4 ? wordKey
[1] : wordKey
[2]);
11159 translate: function (number
, withoutSuffix
, key
) {
11160 var wordKey
= translator
$1.words
[key
];
11161 if (key
.length
=== 1) {
11162 return withoutSuffix
? wordKey
[0] : wordKey
[1];
11164 return number
+ ' ' + translator
$1.correctGrammaticalCase(number
, wordKey
);
11169 hooks
.defineLocale('sr-cyrl', {
11170 months
: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
11171 monthsShort
: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
11172 monthsParseExact
: true,
11173 weekdays
: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
11174 weekdaysShort
: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
11175 weekdaysMin
: 'не_по_ут_ср_че_пе_су'.split('_'),
11176 weekdaysParseExact
: true,
11181 LL
: 'D. MMMM YYYY',
11182 LLL
: 'D. MMMM YYYY H:mm',
11183 LLLL
: 'dddd, D. MMMM YYYY H:mm'
11186 sameDay
: '[данас у] LT',
11187 nextDay
: '[сутра у] LT',
11188 nextWeek: function () {
11189 switch (this.day()) {
11191 return '[у] [недељу] [у] LT';
11193 return '[у] [среду] [у] LT';
11195 return '[у] [суботу] [у] LT';
11200 return '[у] dddd [у] LT';
11203 lastDay
: '[јуче у] LT',
11204 lastWeek : function () {
11205 var lastWeekDays
= [
11206 '[прошле] [недеље] [у] LT',
11207 '[прошлог] [понедељка] [у] LT',
11208 '[прошлог] [уторка] [у] LT',
11209 '[прошле] [среде] [у] LT',
11210 '[прошлог] [четвртка] [у] LT',
11211 '[прошлог] [петка] [у] LT',
11212 '[прошле] [суботе] [у] LT'
11214 return lastWeekDays
[this.day()];
11221 s
: 'неколико секунди',
11222 m
: translator
$1.translate
,
11223 mm
: translator
$1.translate
,
11224 h
: translator
$1.translate
,
11225 hh
: translator
$1.translate
,
11227 dd
: translator
$1.translate
,
11229 MM
: translator
$1.translate
,
11231 yy
: translator
$1.translate
11233 ordinalParse
: /\d{1,2}\./,
11236 dow
: 1, // Monday is the first day of the week.
11237 doy
: 7 // The week that contains Jan 1st is the first week of the year.
11241 //! moment.js locale configuration
11242 //! locale : Serbian [sr]
11243 //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
11245 var translator
$2 = {
11246 words
: { //Different grammatical cases
11247 m
: ['jedan minut', 'jedne minute'],
11248 mm
: ['minut', 'minute', 'minuta'],
11249 h
: ['jedan sat', 'jednog sata'],
11250 hh
: ['sat', 'sata', 'sati'],
11251 dd
: ['dan', 'dana', 'dana'],
11252 MM
: ['mesec', 'meseca', 'meseci'],
11253 yy
: ['godina', 'godine', 'godina']
11255 correctGrammaticalCase: function (number
, wordKey
) {
11256 return number
=== 1 ? wordKey
[0] : (number
>= 2 && number
<= 4 ? wordKey
[1] : wordKey
[2]);
11258 translate: function (number
, withoutSuffix
, key
) {
11259 var wordKey
= translator
$2.words
[key
];
11260 if (key
.length
=== 1) {
11261 return withoutSuffix
? wordKey
[0] : wordKey
[1];
11263 return number
+ ' ' + translator
$2.correctGrammaticalCase(number
, wordKey
);
11268 hooks
.defineLocale('sr', {
11269 months
: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
11270 monthsShort
: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
11271 monthsParseExact
: true,
11272 weekdays
: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
11273 weekdaysShort
: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
11274 weekdaysMin
: 'ne_po_ut_sr_če_pe_su'.split('_'),
11275 weekdaysParseExact
: true,
11280 LL
: 'D. MMMM YYYY',
11281 LLL
: 'D. MMMM YYYY H:mm',
11282 LLLL
: 'dddd, D. MMMM YYYY H:mm'
11285 sameDay
: '[danas u] LT',
11286 nextDay
: '[sutra u] LT',
11287 nextWeek: function () {
11288 switch (this.day()) {
11290 return '[u] [nedelju] [u] LT';
11292 return '[u] [sredu] [u] LT';
11294 return '[u] [subotu] [u] LT';
11299 return '[u] dddd [u] LT';
11302 lastDay
: '[juče u] LT',
11303 lastWeek : function () {
11304 var lastWeekDays
= [
11305 '[prošle] [nedelje] [u] LT',
11306 '[prošlog] [ponedeljka] [u] LT',
11307 '[prošlog] [utorka] [u] LT',
11308 '[prošle] [srede] [u] LT',
11309 '[prošlog] [četvrtka] [u] LT',
11310 '[prošlog] [petka] [u] LT',
11311 '[prošle] [subote] [u] LT'
11313 return lastWeekDays
[this.day()];
11320 s
: 'nekoliko sekundi',
11321 m
: translator
$2.translate
,
11322 mm
: translator
$2.translate
,
11323 h
: translator
$2.translate
,
11324 hh
: translator
$2.translate
,
11326 dd
: translator
$2.translate
,
11328 MM
: translator
$2.translate
,
11330 yy
: translator
$2.translate
11332 ordinalParse
: /\d{1,2}\./,
11335 dow
: 1, // Monday is the first day of the week.
11336 doy
: 7 // The week that contains Jan 1st is the first week of the year.
11340 //! moment.js locale configuration
11341 //! locale : siSwati [ss]
11342 //! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
11345 hooks
.defineLocale('ss', {
11346 months
: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
11347 monthsShort
: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
11348 weekdays
: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
11349 weekdaysShort
: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
11350 weekdaysMin
: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
11351 weekdaysParseExact
: true,
11356 LL
: 'D MMMM YYYY',
11357 LLL
: 'D MMMM YYYY h:mm A',
11358 LLLL
: 'dddd, D MMMM YYYY h:mm A'
11361 sameDay
: '[Namuhla nga] LT',
11362 nextDay
: '[Kusasa nga] LT',
11363 nextWeek
: 'dddd [nga] LT',
11364 lastDay
: '[Itolo nga] LT',
11365 lastWeek
: 'dddd [leliphelile] [nga] LT',
11370 past
: 'wenteka nga %s',
11371 s
: 'emizuzwana lomcane',
11377 dd
: '%d emalanga',
11379 MM
: '%d tinyanga',
11383 meridiemParse
: /ekuseni|emini|entsambama|ebusuku/,
11384 meridiem : function (hours
, minutes
, isLower
) {
11387 } else if (hours
< 15) {
11389 } else if (hours
< 19) {
11390 return 'entsambama';
11395 meridiemHour : function (hour
, meridiem
) {
11399 if (meridiem
=== 'ekuseni') {
11401 } else if (meridiem
=== 'emini') {
11402 return hour
>= 11 ? hour
: hour
+ 12;
11403 } else if (meridiem
=== 'entsambama' || meridiem
=== 'ebusuku') {
11410 ordinalParse
: /\d{1,2}/,
11413 dow
: 1, // Monday is the first day of the week.
11414 doy
: 4 // The week that contains Jan 4th is the first week of the year.
11418 //! moment.js locale configuration
11419 //! locale : Swedish [sv]
11420 //! author : Jens Alm : https://github.com/ulmus
11422 hooks
.defineLocale('sv', {
11423 months
: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
11424 monthsShort
: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
11425 weekdays
: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
11426 weekdaysShort
: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
11427 weekdaysMin
: 'sö_må_ti_on_to_fr_lö'.split('_'),
11432 LL
: 'D MMMM YYYY',
11433 LLL
: 'D MMMM YYYY [kl.] HH:mm',
11434 LLLL
: 'dddd D MMMM YYYY [kl.] HH:mm',
11435 lll
: 'D MMM YYYY HH:mm',
11436 llll
: 'ddd D MMM YYYY HH:mm'
11439 sameDay
: '[Idag] LT',
11440 nextDay
: '[Imorgon] LT',
11441 lastDay
: '[Igår] LT',
11442 nextWeek
: '[På] dddd LT',
11443 lastWeek
: '[I] dddd[s] LT',
11448 past
: 'för %s sedan',
11449 s
: 'några sekunder',
11461 ordinalParse
: /\d{1,2}(e|a)/,
11462 ordinal : function (number
) {
11463 var b
= number
% 10,
11464 output
= (~~(number
% 100 / 10) === 1) ? 'e' :
11467 (b
=== 3) ? 'e' : 'e';
11468 return number
+ output
;
11471 dow
: 1, // Monday is the first day of the week.
11472 doy
: 4 // The week that contains Jan 4th is the first week of the year.
11476 //! moment.js locale configuration
11477 //! locale : Swahili [sw]
11478 //! author : Fahad Kassim : https://github.com/fadsel
11480 hooks
.defineLocale('sw', {
11481 months
: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
11482 monthsShort
: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
11483 weekdays
: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
11484 weekdaysShort
: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
11485 weekdaysMin
: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
11486 weekdaysParseExact
: true,
11491 LL
: 'D MMMM YYYY',
11492 LLL
: 'D MMMM YYYY HH:mm',
11493 LLLL
: 'dddd, D MMMM YYYY HH:mm'
11496 sameDay
: '[leo saa] LT',
11497 nextDay
: '[kesho saa] LT',
11498 nextWeek
: '[wiki ijayo] dddd [saat] LT',
11499 lastDay
: '[jana] LT',
11500 lastWeek
: '[wiki iliyopita] dddd [saat] LT',
11504 future
: '%s baadaye',
11519 dow
: 1, // Monday is the first day of the week.
11520 doy
: 7 // The week that contains Jan 1st is the first week of the year.
11524 //! moment.js locale configuration
11525 //! locale : Tamil [ta]
11526 //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
11528 var symbolMap
$11 = {
11540 var numberMap
$10 = {
11553 hooks
.defineLocale('ta', {
11554 months
: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
11555 monthsShort
: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
11556 weekdays
: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
11557 weekdaysShort
: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
11558 weekdaysMin
: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
11563 LL
: 'D MMMM YYYY',
11564 LLL
: 'D MMMM YYYY, HH:mm',
11565 LLLL
: 'dddd, D MMMM YYYY, HH:mm'
11568 sameDay
: '[இன்று] LT',
11569 nextDay
: '[நாளை] LT',
11570 nextWeek
: 'dddd, LT',
11571 lastDay
: '[நேற்று] LT',
11572 lastWeek
: '[கடந்த வாரம்] dddd, LT',
11578 s
: 'ஒரு சில விநாடிகள்',
11580 mm
: '%d நிமிடங்கள்',
11581 h
: 'ஒரு மணி நேரம்',
11582 hh
: '%d மணி நேரம்',
11586 MM
: '%d மாதங்கள்',
11590 ordinalParse
: /\d{1,2}வது/,
11591 ordinal : function (number
) {
11592 return number
+ 'வது';
11594 preparse: function (string
) {
11595 return string
.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match
) {
11596 return numberMap
$10[match
];
11599 postformat: function (string
) {
11600 return string
.replace(/\d/g, function (match
) {
11601 return symbolMap
$11[match
];
11604 // refer http://ta.wikipedia.org/s/1er1
11605 meridiemParse
: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
11606 meridiem : function (hour
, minute
, isLower
) {
11609 } else if (hour
< 6) {
11610 return ' வைகறை'; // வைகறை
11611 } else if (hour
< 10) {
11612 return ' காலை'; // காலை
11613 } else if (hour
< 14) {
11614 return ' நண்பகல்'; // நண்பகல்
11615 } else if (hour
< 18) {
11616 return ' எற்பாடு'; // எற்பாடு
11617 } else if (hour
< 22) {
11618 return ' மாலை'; // மாலை
11623 meridiemHour : function (hour
, meridiem
) {
11627 if (meridiem
=== 'யாமம்') {
11628 return hour
< 2 ? hour
: hour
+ 12;
11629 } else if (meridiem
=== 'வைகறை' || meridiem
=== 'காலை') {
11631 } else if (meridiem
=== 'நண்பகல்') {
11632 return hour
>= 10 ? hour
: hour
+ 12;
11638 dow
: 0, // Sunday is the first day of the week.
11639 doy
: 6 // The week that contains Jan 1st is the first week of the year.
11643 //! moment.js locale configuration
11644 //! locale : Telugu [te]
11645 //! author : Krishna Chaitanya Thota : https://github.com/kcthota
11647 hooks
.defineLocale('te', {
11648 months
: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
11649 monthsShort
: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
11650 monthsParseExact
: true,
11651 weekdays
: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
11652 weekdaysShort
: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
11653 weekdaysMin
: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
11658 LL
: 'D MMMM YYYY',
11659 LLL
: 'D MMMM YYYY, A h:mm',
11660 LLLL
: 'dddd, D MMMM YYYY, A h:mm'
11663 sameDay
: '[నేడు] LT',
11664 nextDay
: '[రేపు] LT',
11665 nextWeek
: 'dddd, LT',
11666 lastDay
: '[నిన్న] LT',
11667 lastWeek
: '[గత] dddd, LT',
11672 past
: '%s క్రితం',
11673 s
: 'కొన్ని క్షణాలు',
11675 mm
: '%d నిమిషాలు',
11683 yy
: '%d సంవత్సరాలు'
11685 ordinalParse
: /\d{1,2}వ/,
11687 meridiemParse
: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
11688 meridiemHour : function (hour
, meridiem
) {
11692 if (meridiem
=== 'రాత్రి') {
11693 return hour
< 4 ? hour
: hour
+ 12;
11694 } else if (meridiem
=== 'ఉదయం') {
11696 } else if (meridiem
=== 'మధ్యాహ్నం') {
11697 return hour
>= 10 ? hour
: hour
+ 12;
11698 } else if (meridiem
=== 'సాయంత్రం') {
11702 meridiem : function (hour
, minute
, isLower
) {
11705 } else if (hour
< 10) {
11707 } else if (hour
< 17) {
11708 return 'మధ్యాహ్నం';
11709 } else if (hour
< 20) {
11716 dow
: 0, // Sunday is the first day of the week.
11717 doy
: 6 // The week that contains Jan 1st is the first week of the year.
11721 //! moment.js locale configuration
11722 //! locale : Tetun Dili (East Timor) [tet]
11723 //! author : Joshua Brooks : https://github.com/joshbrooks
11724 //! author : Onorio De J. Afonso : https://github.com/marobo
11726 hooks
.defineLocale('tet', {
11727 months
: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),
11728 monthsShort
: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez'.split('_'),
11729 weekdays
: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu'.split('_'),
11730 weekdaysShort
: 'Dom_Seg_Ters_Kua_Kint_Sext_Sab'.split('_'),
11731 weekdaysMin
: 'Do_Seg_Te_Ku_Ki_Sex_Sa'.split('_'),
11736 LL
: 'D MMMM YYYY',
11737 LLL
: 'D MMMM YYYY HH:mm',
11738 LLLL
: 'dddd, D MMMM YYYY HH:mm'
11741 sameDay
: '[Ohin iha] LT',
11742 nextDay
: '[Aban iha] LT',
11743 nextWeek
: 'dddd [iha] LT',
11744 lastDay
: '[Horiseik iha] LT',
11745 lastWeek
: 'dddd [semana kotuk] [iha] LT',
11751 s
: 'minutu balun',
11763 ordinalParse
: /\d{1,2}(st|nd|rd|th)/,
11764 ordinal : function (number
) {
11765 var b
= number
% 10,
11766 output
= (~~(number
% 100 / 10) === 1) ? 'th' :
11769 (b
=== 3) ? 'rd' : 'th';
11770 return number
+ output
;
11773 dow
: 1, // Monday is the first day of the week.
11774 doy
: 4 // The week that contains Jan 4th is the first week of the year.
11778 //! moment.js locale configuration
11779 //! locale : Thai [th]
11780 //! author : Kridsada Thanabulpong : https://github.com/sirn
11782 hooks
.defineLocale('th', {
11783 months
: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
11784 monthsShort
: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
11785 monthsParseExact
: true,
11786 weekdays
: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
11787 weekdaysShort
: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
11788 weekdaysMin
: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
11789 weekdaysParseExact
: true,
11794 LL
: 'D MMMM YYYY',
11795 LLL
: 'D MMMM YYYY เวลา H:mm',
11796 LLLL
: 'วันddddที่ D MMMM YYYY เวลา H:mm'
11798 meridiemParse
: /ก่อนเที่ยง|หลังเที่ยง/,
11799 isPM: function (input
) {
11800 return input
=== 'หลังเที่ยง';
11802 meridiem : function (hour
, minute
, isLower
) {
11804 return 'ก่อนเที่ยง';
11806 return 'หลังเที่ยง';
11810 sameDay
: '[วันนี้ เวลา] LT',
11811 nextDay
: '[พรุ่งนี้ เวลา] LT',
11812 nextWeek
: 'dddd[หน้า เวลา] LT',
11813 lastDay
: '[เมื่อวานนี้ เวลา] LT',
11814 lastWeek
: '[วัน]dddd[ที่แล้ว เวลา] LT',
11819 past
: '%sที่แล้ว',
11820 s
: 'ไม่กี่วินาที',
11834 //! moment.js locale configuration
11835 //! locale : Tagalog (Philippines) [tl-ph]
11836 //! author : Dan Hagman : https://github.com/hagmandan
11838 hooks
.defineLocale('tl-ph', {
11839 months
: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
11840 monthsShort
: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
11841 weekdays
: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
11842 weekdaysShort
: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
11843 weekdaysMin
: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
11848 LL
: 'MMMM D, YYYY',
11849 LLL
: 'MMMM D, YYYY HH:mm',
11850 LLLL
: 'dddd, MMMM DD, YYYY HH:mm'
11853 sameDay
: 'LT [ngayong araw]',
11854 nextDay
: '[Bukas ng] LT',
11855 nextWeek
: 'LT [sa susunod na] dddd',
11856 lastDay
: 'LT [kahapon]',
11857 lastWeek
: 'LT [noong nakaraang] dddd',
11861 future
: 'sa loob ng %s',
11862 past
: '%s ang nakalipas',
11863 s
: 'ilang segundo',
11864 m
: 'isang minuto',
11875 ordinalParse
: /\d{1,2}/,
11876 ordinal : function (number
) {
11880 dow
: 1, // Monday is the first day of the week.
11881 doy
: 4 // The week that contains Jan 4th is the first week of the year.
11885 //! moment.js locale configuration
11886 //! locale : Klingon [tlh]
11887 //! author : Dominika Kruk : https://github.com/amaranthrose
11889 var numbersNouns
= 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
11891 function translateFuture(output
) {
11893 time
= (output
.indexOf('jaj') !== -1) ?
11894 time
.slice(0, -3) + 'leS' :
11895 (output
.indexOf('jar') !== -1) ?
11896 time
.slice(0, -3) + 'waQ' :
11897 (output
.indexOf('DIS') !== -1) ?
11898 time
.slice(0, -3) + 'nem' :
11903 function translatePast(output
) {
11905 time
= (output
.indexOf('jaj') !== -1) ?
11906 time
.slice(0, -3) + 'Hu’' :
11907 (output
.indexOf('jar') !== -1) ?
11908 time
.slice(0, -3) + 'wen' :
11909 (output
.indexOf('DIS') !== -1) ?
11910 time
.slice(0, -3) + 'ben' :
11915 function translate
$9(number
, withoutSuffix
, string
, isFuture
) {
11916 var numberNoun
= numberAsNoun(number
);
11919 return numberNoun
+ ' tup';
11921 return numberNoun
+ ' rep';
11923 return numberNoun
+ ' jaj';
11925 return numberNoun
+ ' jar';
11927 return numberNoun
+ ' DIS';
11931 function numberAsNoun(number
) {
11932 var hundred
= Math
.floor((number
% 1000) / 100),
11933 ten
= Math
.floor((number
% 100) / 10),
11937 word
+= numbersNouns
[hundred
] + 'vatlh';
11940 word
+= ((word
!== '') ? ' ' : '') + numbersNouns
[ten
] + 'maH';
11943 word
+= ((word
!== '') ? ' ' : '') + numbersNouns
[one
];
11945 return (word
=== '') ? 'pagh' : word
;
11948 hooks
.defineLocale('tlh', {
11949 months
: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split('_'),
11950 monthsShort
: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split('_'),
11951 monthsParseExact
: true,
11952 weekdays
: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
11953 weekdaysShort
: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
11954 weekdaysMin
: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
11959 LL
: 'D MMMM YYYY',
11960 LLL
: 'D MMMM YYYY HH:mm',
11961 LLLL
: 'dddd, D MMMM YYYY HH:mm'
11964 sameDay
: '[DaHjaj] LT',
11965 nextDay
: '[wa’leS] LT',
11967 lastDay
: '[wa’Hu’] LT',
11972 future
: translateFuture
,
11973 past
: translatePast
,
11986 ordinalParse
: /\d{1,2}\./,
11989 dow
: 1, // Monday is the first day of the week.
11990 doy
: 4 // The week that contains Jan 4th is the first week of the year.
11994 //! moment.js locale configuration
11995 //! locale : Turkish [tr]
11996 //! authors : Erhan Gundogan : https://github.com/erhangundogan,
11997 //! Burak Yiğit Kaya: https://github.com/BYK
12020 hooks
.defineLocale('tr', {
12021 months
: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
12022 monthsShort
: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
12023 weekdays
: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
12024 weekdaysShort
: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
12025 weekdaysMin
: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
12030 LL
: 'D MMMM YYYY',
12031 LLL
: 'D MMMM YYYY HH:mm',
12032 LLLL
: 'dddd, D MMMM YYYY HH:mm'
12035 sameDay
: '[bugün saat] LT',
12036 nextDay
: '[yarın saat] LT',
12037 nextWeek
: '[haftaya] dddd [saat] LT',
12038 lastDay
: '[dün] LT',
12039 lastWeek
: '[geçen hafta] dddd [saat] LT',
12043 future
: '%s sonra',
12045 s
: 'birkaç saniye',
12057 ordinalParse
: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,
12058 ordinal : function (number
) {
12059 if (number
=== 0) { // special case for zero
12060 return number
+ '\'ıncı';
12062 var a
= number
% 10,
12063 b
= number
% 100 - a
,
12064 c
= number
>= 100 ? 100 : null;
12065 return number
+ (suffixes
$3[a
] || suffixes
$3[b
] || suffixes
$3[c
]);
12068 dow
: 1, // Monday is the first day of the week.
12069 doy
: 7 // The week that contains Jan 1st is the first week of the year.
12073 //! moment.js locale configuration
12074 //! locale : Talossan [tzl]
12075 //! author : Robin van der Vliet : https://github.com/robin0van0der0v
12076 //! author : Iustì Canun
12078 // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
12079 // This is currently too difficult (maybe even impossible) to add.
12080 hooks
.defineLocale('tzl', {
12081 months
: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
12082 monthsShort
: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
12083 weekdays
: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
12084 weekdaysShort
: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
12085 weekdaysMin
: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
12090 LL
: 'D. MMMM [dallas] YYYY',
12091 LLL
: 'D. MMMM [dallas] YYYY HH.mm',
12092 LLLL
: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
12094 meridiemParse
: /d\'o|d\'a/i,
12095 isPM : function (input
) {
12096 return 'd\'o' === input
.toLowerCase();
12098 meridiem : function (hours
, minutes
, isLower
) {
12100 return isLower
? 'd\'o' : 'D\'O';
12102 return isLower
? 'd\'a' : 'D\'A';
12106 sameDay
: '[oxhi à] LT',
12107 nextDay
: '[demà à] LT',
12108 nextWeek
: 'dddd [à] LT',
12109 lastDay
: '[ieiri à] LT',
12110 lastWeek
: '[sür el] dddd [lasteu à] LT',
12114 future
: 'osprei %s',
12116 s
: processRelativeTime
$5,
12117 m
: processRelativeTime
$5,
12118 mm
: processRelativeTime
$5,
12119 h
: processRelativeTime
$5,
12120 hh
: processRelativeTime
$5,
12121 d
: processRelativeTime
$5,
12122 dd
: processRelativeTime
$5,
12123 M
: processRelativeTime
$5,
12124 MM
: processRelativeTime
$5,
12125 y
: processRelativeTime
$5,
12126 yy
: processRelativeTime
$5
12128 ordinalParse
: /\d{1,2}\./,
12131 dow
: 1, // Monday is the first day of the week.
12132 doy
: 4 // The week that contains Jan 4th is the first week of the year.
12136 function processRelativeTime
$5(number
, withoutSuffix
, key
, isFuture
) {
12138 's': ['viensas secunds', '\'iensas secunds'],
12139 'm': ['\'n míut', '\'iens míut'],
12140 'mm': [number
+ ' míuts', '' + number
+ ' míuts'],
12141 'h': ['\'n þora', '\'iensa þora'],
12142 'hh': [number
+ ' þoras', '' + number
+ ' þoras'],
12143 'd': ['\'n ziua', '\'iensa ziua'],
12144 'dd': [number
+ ' ziuas', '' + number
+ ' ziuas'],
12145 'M': ['\'n mes', '\'iens mes'],
12146 'MM': [number
+ ' mesen', '' + number
+ ' mesen'],
12147 'y': ['\'n ar', '\'iens ar'],
12148 'yy': [number
+ ' ars', '' + number
+ ' ars']
12150 return isFuture
? format
[key
][0] : (withoutSuffix
? format
[key
][0] : format
[key
][1]);
12153 //! moment.js locale configuration
12154 //! locale : Central Atlas Tamazight Latin [tzm-latn]
12155 //! author : Abdel Said : https://github.com/abdelsaid
12157 hooks
.defineLocale('tzm-latn', {
12158 months
: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
12159 monthsShort
: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
12160 weekdays
: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
12161 weekdaysShort
: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
12162 weekdaysMin
: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
12167 LL
: 'D MMMM YYYY',
12168 LLL
: 'D MMMM YYYY HH:mm',
12169 LLLL
: 'dddd D MMMM YYYY HH:mm'
12172 sameDay
: '[asdkh g] LT',
12173 nextDay
: '[aska g] LT',
12174 nextWeek
: 'dddd [g] LT',
12175 lastDay
: '[assant g] LT',
12176 lastWeek
: 'dddd [g] LT',
12180 future
: 'dadkh s yan %s',
12186 hh
: '%d tassaɛin',
12195 dow
: 6, // Saturday is the first day of the week.
12196 doy
: 12 // The week that contains Jan 1st is the first week of the year.
12200 //! moment.js locale configuration
12201 //! locale : Central Atlas Tamazight [tzm]
12202 //! author : Abdel Said : https://github.com/abdelsaid
12204 hooks
.defineLocale('tzm', {
12205 months
: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
12206 monthsShort
: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
12207 weekdays
: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
12208 weekdaysShort
: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
12209 weekdaysMin
: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
12214 LL
: 'D MMMM YYYY',
12215 LLL
: 'D MMMM YYYY HH:mm',
12216 LLLL
: 'dddd D MMMM YYYY HH:mm'
12219 sameDay
: '[ⴰⵙⴷⵅ ⴴ] LT',
12220 nextDay
: '[ⴰⵙⴽⴰ ⴴ] LT',
12221 nextWeek
: 'dddd [ⴴ] LT',
12222 lastDay
: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
12223 lastWeek
: 'dddd [ⴴ] LT',
12227 future
: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
12233 hh
: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
12242 dow
: 6, // Saturday is the first day of the week.
12243 doy
: 12 // The week that contains Jan 1st is the first week of the year.
12247 //! moment.js locale configuration
12248 //! locale : Ukrainian [uk]
12249 //! author : zemlanin : https://github.com/zemlanin
12250 //! Author : Menelion Elensúle : https://github.com/Oire
12252 function plural
$6(word
, num
) {
12253 var forms
= word
.split('_');
12254 return num
% 10 === 1 && num
% 100 !== 11 ? forms
[0] : (num
% 10 >= 2 && num
% 10 <= 4 && (num
% 100 < 10 || num
% 100 >= 20) ? forms
[1] : forms
[2]);
12256 function relativeTimeWithPlural
$4(number
, withoutSuffix
, key
) {
12258 'mm': withoutSuffix
? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
12259 'hh': withoutSuffix
? 'година_години_годин' : 'годину_години_годин',
12260 'dd': 'день_дні_днів',
12261 'MM': 'місяць_місяці_місяців',
12262 'yy': 'рік_роки_років'
12265 return withoutSuffix
? 'хвилина' : 'хвилину';
12267 else if (key
=== 'h') {
12268 return withoutSuffix
? 'година' : 'годину';
12271 return number
+ ' ' + plural
$6(format
[key
], +number
);
12274 function weekdaysCaseReplace(m
, format
) {
12276 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
12277 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
12278 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
12280 nounCase
= (/(\[[ВвУу]\]) ?dddd/).test(format
) ?
12282 ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format
) ?
12285 return weekdays
[nounCase
][m
.day()];
12287 function processHoursFunction(str
) {
12288 return function () {
12289 return str
+ 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
12293 hooks
.defineLocale('uk', {
12295 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
12296 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
12298 monthsShort
: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
12299 weekdays
: weekdaysCaseReplace
,
12300 weekdaysShort
: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
12301 weekdaysMin
: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
12306 LL
: 'D MMMM YYYY р.',
12307 LLL
: 'D MMMM YYYY р., HH:mm',
12308 LLLL
: 'dddd, D MMMM YYYY р., HH:mm'
12311 sameDay
: processHoursFunction('[Сьогодні '),
12312 nextDay
: processHoursFunction('[Завтра '),
12313 lastDay
: processHoursFunction('[Вчора '),
12314 nextWeek
: processHoursFunction('[У] dddd ['),
12315 lastWeek: function () {
12316 switch (this.day()) {
12321 return processHoursFunction('[Минулої] dddd [').call(this);
12325 return processHoursFunction('[Минулого] dddd [').call(this);
12333 s
: 'декілька секунд',
12334 m
: relativeTimeWithPlural
$4,
12335 mm
: relativeTimeWithPlural
$4,
12337 hh
: relativeTimeWithPlural
$4,
12339 dd
: relativeTimeWithPlural
$4,
12341 MM
: relativeTimeWithPlural
$4,
12343 yy
: relativeTimeWithPlural
$4
12345 // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
12346 meridiemParse
: /ночі|ранку|дня|вечора/,
12347 isPM: function (input
) {
12348 return /^(дня|вечора)$/.test(input
);
12350 meridiem : function (hour
, minute
, isLower
) {
12353 } else if (hour
< 12) {
12355 } else if (hour
< 17) {
12361 ordinalParse
: /\d{1,2}-(й|го)/,
12362 ordinal: function (number
, period
) {
12369 return number
+ '-й';
12371 return number
+ '-го';
12377 dow
: 1, // Monday is the first day of the week.
12378 doy
: 7 // The week that contains Jan 1st is the first week of the year.
12382 //! moment.js locale configuration
12383 //! locale : Uzbek [uz]
12384 //! author : Sardor Muminov : https://github.com/muminoff
12386 hooks
.defineLocale('uz', {
12387 months
: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
12388 monthsShort
: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
12389 weekdays
: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
12390 weekdaysShort
: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
12391 weekdaysMin
: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
12396 LL
: 'D MMMM YYYY',
12397 LLL
: 'D MMMM YYYY HH:mm',
12398 LLLL
: 'D MMMM YYYY, dddd HH:mm'
12401 sameDay
: '[Бугун соат] LT [да]',
12402 nextDay
: '[Эртага] LT [да]',
12403 nextWeek
: 'dddd [куни соат] LT [да]',
12404 lastDay
: '[Кеча соат] LT [да]',
12405 lastWeek
: '[Утган] dddd [куни соат] LT [да]',
12409 future
: 'Якин %s ичида',
12410 past
: 'Бир неча %s олдин',
12424 dow
: 1, // Monday is the first day of the week.
12425 doy
: 7 // The week that contains Jan 4th is the first week of the year.
12429 //! moment.js locale configuration
12430 //! locale : Vietnamese [vi]
12431 //! author : Bang Nguyen : https://github.com/bangnk
12433 hooks
.defineLocale('vi', {
12434 months
: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),
12435 monthsShort
: 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
12436 monthsParseExact
: true,
12437 weekdays
: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
12438 weekdaysShort
: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
12439 weekdaysMin
: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
12440 weekdaysParseExact
: true,
12441 meridiemParse
: /sa|ch/i,
12442 isPM : function (input
) {
12443 return /^ch$/i.test(input
);
12445 meridiem : function (hours
, minutes
, isLower
) {
12447 return isLower
? 'sa' : 'SA';
12449 return isLower
? 'ch' : 'CH';
12456 LL
: 'D MMMM [năm] YYYY',
12457 LLL
: 'D MMMM [năm] YYYY HH:mm',
12458 LLLL
: 'dddd, D MMMM [năm] YYYY HH:mm',
12461 lll
: 'D MMM YYYY HH:mm',
12462 llll
: 'ddd, D MMM YYYY HH:mm'
12465 sameDay
: '[Hôm nay lúc] LT',
12466 nextDay
: '[Ngày mai lúc] LT',
12467 nextWeek
: 'dddd [tuần tới lúc] LT',
12468 lastDay
: '[Hôm qua lúc] LT',
12469 lastWeek
: 'dddd [tuần rồi lúc] LT',
12487 ordinalParse
: /\d{1,2}/,
12488 ordinal : function (number
) {
12492 dow
: 1, // Monday is the first day of the week.
12493 doy
: 4 // The week that contains Jan 4th is the first week of the year.
12497 //! moment.js locale configuration
12498 //! locale : Pseudo [x-pseudo]
12499 //! author : Andrew Hood : https://github.com/andrewhood125
12501 hooks
.defineLocale('x-pseudo', {
12502 months
: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'),
12503 monthsShort
: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
12504 monthsParseExact
: true,
12505 weekdays
: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
12506 weekdaysShort
: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
12507 weekdaysMin
: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
12508 weekdaysParseExact
: true,
12512 LL
: 'D MMMM YYYY',
12513 LLL
: 'D MMMM YYYY HH:mm',
12514 LLLL
: 'dddd, D MMMM YYYY HH:mm'
12517 sameDay
: '[T~ódá~ý át] LT',
12518 nextDay
: '[T~ómó~rró~w át] LT',
12519 nextWeek
: 'dddd [át] LT',
12520 lastDay
: '[Ý~ést~érdá~ý át] LT',
12521 lastWeek
: '[L~ást] dddd [át] LT',
12527 s
: 'á ~féw ~sécó~ñds',
12529 mm
: '%d m~íñú~tés',
12535 MM
: '%d m~óñt~hs',
12539 ordinalParse
: /\d{1,2}(th|st|nd|rd)/,
12540 ordinal : function (number
) {
12541 var b
= number
% 10,
12542 output
= (~~(number
% 100 / 10) === 1) ? 'th' :
12545 (b
=== 3) ? 'rd' : 'th';
12546 return number
+ output
;
12549 dow
: 1, // Monday is the first day of the week.
12550 doy
: 4 // The week that contains Jan 4th is the first week of the year.
12554 //! moment.js locale configuration
12555 //! locale : Yoruba Nigeria [yo]
12556 //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
12558 hooks
.defineLocale('yo', {
12559 months
: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),
12560 monthsShort
: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
12561 weekdays
: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
12562 weekdaysShort
: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
12563 weekdaysMin
: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
12568 LL
: 'D MMMM YYYY',
12569 LLL
: 'D MMMM YYYY h:mm A',
12570 LLLL
: 'dddd, D MMMM YYYY h:mm A'
12573 sameDay
: '[Ònì ni] LT',
12574 nextDay
: '[Ọ̀la ni] LT',
12575 nextWeek
: 'dddd [Ọsẹ̀ tón\'bọ] [ni] LT',
12576 lastDay
: '[Àna ni] LT',
12577 lastWeek
: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
12583 s
: 'ìsẹjú aayá die',
12595 ordinalParse
: /ọjọ́\s\d{1,2}/,
12596 ordinal
: 'ọjọ́ %d',
12598 dow
: 1, // Monday is the first day of the week.
12599 doy
: 4 // The week that contains Jan 4th is the first week of the year.
12603 //! moment.js locale configuration
12604 //! locale : Chinese (China) [zh-cn]
12605 //! author : suupic : https://github.com/suupic
12606 //! author : Zeno Zeng : https://github.com/zenozeng
12608 hooks
.defineLocale('zh-cn', {
12609 months
: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
12610 monthsShort
: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
12611 weekdays
: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
12612 weekdaysShort
: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
12613 weekdaysMin
: '日_一_二_三_四_五_六'.split('_'),
12619 LLL
: 'YYYY年MMMD日Ah点mm分',
12620 LLLL
: 'YYYY年MMMD日ddddAh点mm分',
12623 lll
: 'YYYY年MMMD日Ah点mm分',
12624 llll
: 'YYYY年MMMD日ddddAh点mm分'
12626 meridiemParse
: /凌晨|早上|上午|中午|下午|晚上/,
12627 meridiemHour: function (hour
, meridiem
) {
12631 if (meridiem
=== '凌晨' || meridiem
=== '早上' ||
12632 meridiem
=== '上午') {
12634 } else if (meridiem
=== '下午' || meridiem
=== '晚上') {
12638 return hour
>= 11 ? hour
: hour
+ 12;
12641 meridiem : function (hour
, minute
, isLower
) {
12642 var hm
= hour
* 100 + minute
;
12645 } else if (hm
< 900) {
12647 } else if (hm
< 1130) {
12649 } else if (hm
< 1230) {
12651 } else if (hm
< 1800) {
12658 sameDay : function () {
12659 return this.minutes() === 0 ? '[今天]Ah[点整]' : '[今天]LT';
12661 nextDay : function () {
12662 return this.minutes() === 0 ? '[明天]Ah[点整]' : '[明天]LT';
12664 lastDay : function () {
12665 return this.minutes() === 0 ? '[昨天]Ah[点整]' : '[昨天]LT';
12667 nextWeek : function () {
12668 var startOfWeek
, prefix
;
12669 startOfWeek
= hooks().startOf('week');
12670 prefix
= this.diff(startOfWeek
, 'days') >= 7 ? '[下]' : '[本]';
12671 return this.minutes() === 0 ? prefix
+ 'dddAh点整' : prefix
+ 'dddAh点mm';
12673 lastWeek : function () {
12674 var startOfWeek
, prefix
;
12675 startOfWeek
= hooks().startOf('week');
12676 prefix
= this.unix() < startOfWeek
.unix() ? '[上]' : '[本]';
12677 return this.minutes() === 0 ? prefix
+ 'dddAh点整' : prefix
+ 'dddAh点mm';
12681 ordinalParse
: /\d{1,2}(日|月|周)/,
12682 ordinal : function (number
, period
) {
12687 return number
+ '日';
12689 return number
+ '月';
12692 return number
+ '周';
12713 // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
12714 dow
: 1, // Monday is the first day of the week.
12715 doy
: 4 // The week that contains Jan 4th is the first week of the year.
12719 //! moment.js locale configuration
12720 //! locale : Chinese (Hong Kong) [zh-hk]
12721 //! author : Ben : https://github.com/ben-lin
12722 //! author : Chris Lam : https://github.com/hehachris
12723 //! author : Konstantin : https://github.com/skfd
12725 hooks
.defineLocale('zh-hk', {
12726 months
: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
12727 monthsShort
: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
12728 weekdays
: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
12729 weekdaysShort
: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
12730 weekdaysMin
: '日_一_二_三_四_五_六'.split('_'),
12736 LLL
: 'YYYY年MMMD日Ah點mm分',
12737 LLLL
: 'YYYY年MMMD日ddddAh點mm分',
12740 lll
: 'YYYY年MMMD日Ah點mm分',
12741 llll
: 'YYYY年MMMD日ddddAh點mm分'
12743 meridiemParse
: /凌晨|早上|上午|中午|下午|晚上/,
12744 meridiemHour : function (hour
, meridiem
) {
12748 if (meridiem
=== '凌晨' || meridiem
=== '早上' || meridiem
=== '上午') {
12750 } else if (meridiem
=== '中午') {
12751 return hour
>= 11 ? hour
: hour
+ 12;
12752 } else if (meridiem
=== '下午' || meridiem
=== '晚上') {
12756 meridiem : function (hour
, minute
, isLower
) {
12757 var hm
= hour
* 100 + minute
;
12760 } else if (hm
< 900) {
12762 } else if (hm
< 1130) {
12764 } else if (hm
< 1230) {
12766 } else if (hm
< 1800) {
12773 sameDay
: '[今天]LT',
12774 nextDay
: '[明天]LT',
12775 nextWeek
: '[下]ddddLT',
12776 lastDay
: '[昨天]LT',
12777 lastWeek
: '[上]ddddLT',
12780 ordinalParse
: /\d{1,2}(日|月|週)/,
12781 ordinal : function (number
, period
) {
12786 return number
+ '日';
12788 return number
+ '月';
12791 return number
+ '週';
12813 //! moment.js locale configuration
12814 //! locale : Chinese (Taiwan) [zh-tw]
12815 //! author : Ben : https://github.com/ben-lin
12816 //! author : Chris Lam : https://github.com/hehachris
12818 hooks
.defineLocale('zh-tw', {
12819 months
: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
12820 monthsShort
: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
12821 weekdays
: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
12822 weekdaysShort
: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
12823 weekdaysMin
: '日_一_二_三_四_五_六'.split('_'),
12829 LLL
: 'YYYY年MMMD日Ah點mm分',
12830 LLLL
: 'YYYY年MMMD日ddddAh點mm分',
12833 lll
: 'YYYY年MMMD日Ah點mm分',
12834 llll
: 'YYYY年MMMD日ddddAh點mm分'
12836 meridiemParse
: /凌晨|早上|上午|中午|下午|晚上/,
12837 meridiemHour : function (hour
, meridiem
) {
12841 if (meridiem
=== '凌晨' || meridiem
=== '早上' || meridiem
=== '上午') {
12843 } else if (meridiem
=== '中午') {
12844 return hour
>= 11 ? hour
: hour
+ 12;
12845 } else if (meridiem
=== '下午' || meridiem
=== '晚上') {
12849 meridiem : function (hour
, minute
, isLower
) {
12850 var hm
= hour
* 100 + minute
;
12853 } else if (hm
< 900) {
12855 } else if (hm
< 1130) {
12857 } else if (hm
< 1230) {
12859 } else if (hm
< 1800) {
12866 sameDay
: '[今天]LT',
12867 nextDay
: '[明天]LT',
12868 nextWeek
: '[下]ddddLT',
12869 lastDay
: '[昨天]LT',
12870 lastWeek
: '[上]ddddLT',
12873 ordinalParse
: /\d{1,2}(日|月|週)/,
12874 ordinal : function (number
, period
) {
12879 return number
+ '日';
12881 return number
+ '月';
12884 return number
+ '週';
12906 hooks
.locale('en');