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 isUndefined(input
) {
39 return input
=== void 0;
42 function isNumber(input
) {
43 return typeof input
=== 'number' || Object
.prototype.toString
.call(input
) === '[object Number]';
46 function isDate(input
) {
47 return input
instanceof Date
|| Object
.prototype.toString
.call(input
) === '[object Date]';
50 function map(arr
, fn
) {
52 for (i
= 0; i
< arr
.length
; ++i
) {
53 res
.push(fn(arr
[i
], i
));
58 function hasOwnProp(a
, b
) {
59 return Object
.prototype.hasOwnProperty
.call(a
, b
);
62 function extend(a
, b
) {
64 if (hasOwnProp(b
, i
)) {
69 if (hasOwnProp(b
, 'toString')) {
70 a
.toString
= b
.toString
;
73 if (hasOwnProp(b
, 'valueOf')) {
74 a
.valueOf
= b
.valueOf
;
80 function createUTC (input
, format
, locale
, strict
) {
81 return createLocalOrUTC(input
, format
, locale
, strict
, true).utc();
84 function defaultParsingFlags() {
85 // We need to deep clone this object.
94 invalidFormat
: false,
95 userInvalidated
: false,
100 weekdayMismatch
: false
104 function getParsingFlags(m
) {
106 m
._pf
= defaultParsingFlags();
112 if (Array
.prototype.some
) {
113 some
= Array
.prototype.some
;
115 some = function (fun
) {
116 var t
= Object(this);
117 var len
= t
.length
>>> 0;
119 for (var i
= 0; i
< len
; i
++) {
120 if (i
in t
&& fun
.call(this, t
[i
], i
, t
)) {
131 function isValid(m
) {
132 if (m
._isValid
== null) {
133 var flags
= getParsingFlags(m
);
134 var parsedParts
= some
$1.call(flags
.parsedDateParts
, function (i
) {
137 var isNowValid
= !isNaN(m
._d
.getTime()) &&
138 flags
.overflow
< 0 &&
140 !flags
.invalidMonth
&&
141 !flags
.invalidWeekday
&&
143 !flags
.invalidFormat
&&
144 !flags
.userInvalidated
&&
145 (!flags
.meridiem
|| (flags
.meridiem
&& parsedParts
));
148 isNowValid
= isNowValid
&&
149 flags
.charsLeftOver
=== 0 &&
150 flags
.unusedTokens
.length
=== 0 &&
151 flags
.bigHour
=== undefined;
154 if (Object
.isFrozen
== null || !Object
.isFrozen(m
)) {
155 m
._isValid
= isNowValid
;
164 function createInvalid (flags
) {
165 var m
= createUTC(NaN
);
167 extend(getParsingFlags(m
), flags
);
170 getParsingFlags(m
).userInvalidated
= true;
176 // Plugins that add properties should also add the key here (null value),
177 // so we can properly clone ourselves.
178 var momentProperties
= hooks
.momentProperties
= [];
180 function copyConfig(to
, from) {
183 if (!isUndefined(from._isAMomentObject
)) {
184 to
._isAMomentObject
= from._isAMomentObject
;
186 if (!isUndefined(from._i
)) {
189 if (!isUndefined(from._f
)) {
192 if (!isUndefined(from._l
)) {
195 if (!isUndefined(from._strict
)) {
196 to
._strict
= from._strict
;
198 if (!isUndefined(from._tzm
)) {
201 if (!isUndefined(from._isUTC
)) {
202 to
._isUTC
= from._isUTC
;
204 if (!isUndefined(from._offset
)) {
205 to
._offset
= from._offset
;
207 if (!isUndefined(from._pf
)) {
208 to
._pf
= getParsingFlags(from);
210 if (!isUndefined(from._locale
)) {
211 to
._locale
= from._locale
;
214 if (momentProperties
.length
> 0) {
215 for (i
= 0; i
< momentProperties
.length
; i
++) {
216 prop
= momentProperties
[i
];
218 if (!isUndefined(val
)) {
227 var updateInProgress
= false;
229 // Moment prototype object
230 function Moment(config
) {
231 copyConfig(this, config
);
232 this._d
= new Date(config
._d
!= null ? config
._d
.getTime() : NaN
);
233 if (!this.isValid()) {
234 this._d
= new Date(NaN
);
236 // Prevent infinite loop in case updateOffset creates new moment
238 if (updateInProgress
=== false) {
239 updateInProgress
= true;
240 hooks
.updateOffset(this);
241 updateInProgress
= false;
245 function isMoment (obj
) {
246 return obj
instanceof Moment
|| (obj
!= null && obj
._isAMomentObject
!= null);
249 function absFloor (number
) {
252 return Math
.ceil(number
) || 0;
254 return Math
.floor(number
);
258 function toInt(argumentForCoercion
) {
259 var coercedNumber
= +argumentForCoercion
,
262 if (coercedNumber
!== 0 && isFinite(coercedNumber
)) {
263 value
= absFloor(coercedNumber
);
269 // compare two arrays, return the number of differences
270 function compareArrays(array1
, array2
, dontConvert
) {
271 var len
= Math
.min(array1
.length
, array2
.length
),
272 lengthDiff
= Math
.abs(array1
.length
- array2
.length
),
275 for (i
= 0; i
< len
; i
++) {
276 if ((dontConvert
&& array1
[i
] !== array2
[i
]) ||
277 (!dontConvert
&& toInt(array1
[i
]) !== toInt(array2
[i
]))) {
281 return diffs
+ lengthDiff
;
285 if (hooks
.suppressDeprecationWarnings
=== false &&
286 (typeof console
!== 'undefined') && console
.warn
) {
287 console
.warn('Deprecation warning: ' + msg
);
291 function deprecate(msg
, fn
) {
292 var firstTime
= true;
294 return extend(function () {
295 if (hooks
.deprecationHandler
!= null) {
296 hooks
.deprecationHandler(null, msg
);
301 for (var i
= 0; i
< arguments
.length
; i
++) {
303 if (typeof arguments
[i
] === 'object') {
304 arg
+= '\n[' + i
+ '] ';
305 for (var key
in arguments
[0]) {
306 arg
+= key
+ ': ' + arguments
[0][key
] + ', ';
308 arg
= arg
.slice(0, -2); // Remove trailing comma and space
314 warn(msg
+ '\nArguments: ' + Array
.prototype.slice
.call(args
).join('') + '\n' + (new Error()).stack
);
317 return fn
.apply(this, arguments
);
321 var deprecations
= {};
323 function deprecateSimple(name
, msg
) {
324 if (hooks
.deprecationHandler
!= null) {
325 hooks
.deprecationHandler(name
, msg
);
327 if (!deprecations
[name
]) {
329 deprecations
[name
] = true;
333 hooks
.suppressDeprecationWarnings
= false;
334 hooks
.deprecationHandler
= null;
336 function isFunction(input
) {
337 return input
instanceof Function
|| Object
.prototype.toString
.call(input
) === '[object Function]';
340 function set (config
) {
344 if (isFunction(prop
)) {
347 this['_' + i
] = prop
;
350 this._config
= config
;
351 // Lenient ordinal parsing accepts just a number in addition to
352 // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
353 // TODO: Remove "ordinalParse" fallback in next major release.
354 this._dayOfMonthOrdinalParseLenient
= new RegExp(
355 (this._dayOfMonthOrdinalParse
.source
|| this._ordinalParse
.source
) +
356 '|' + (/\d{1,2}/).source
);
359 function mergeConfigs(parentConfig
, childConfig
) {
360 var res
= extend({}, parentConfig
), prop
;
361 for (prop
in childConfig
) {
362 if (hasOwnProp(childConfig
, prop
)) {
363 if (isObject(parentConfig
[prop
]) && isObject(childConfig
[prop
])) {
365 extend(res
[prop
], parentConfig
[prop
]);
366 extend(res
[prop
], childConfig
[prop
]);
367 } else if (childConfig
[prop
] != null) {
368 res
[prop
] = childConfig
[prop
];
374 for (prop
in parentConfig
) {
375 if (hasOwnProp(parentConfig
, prop
) &&
376 !hasOwnProp(childConfig
, prop
) &&
377 isObject(parentConfig
[prop
])) {
378 // make sure changes to properties don't modify parent config
379 res
[prop
] = extend({}, res
[prop
]);
385 function Locale(config
) {
386 if (config
!= null) {
396 keys = function (obj
) {
399 if (hasOwnProp(obj
, i
)) {
409 var defaultCalendar
= {
410 sameDay
: '[Today at] LT',
411 nextDay
: '[Tomorrow at] LT',
412 nextWeek
: 'dddd [at] LT',
413 lastDay
: '[Yesterday at] LT',
414 lastWeek
: '[Last] dddd [at] LT',
418 function calendar (key
, mom
, now
) {
419 var output
= this._calendar
[key
] || this._calendar
['sameElse'];
420 return isFunction(output
) ? output
.call(mom
, now
) : output
;
423 var defaultLongDateFormat
= {
428 LLL
: 'MMMM D, YYYY h:mm A',
429 LLLL
: 'dddd, MMMM D, YYYY h:mm A'
432 function longDateFormat (key
) {
433 var format
= this._longDateFormat
[key
],
434 formatUpper
= this._longDateFormat
[key
.toUpperCase()];
436 if (format
|| !formatUpper
) {
440 this._longDateFormat
[key
] = formatUpper
.replace(/MMMM|MM|DD|dddd/g, function (val
) {
444 return this._longDateFormat
[key
];
447 var defaultInvalidDate
= 'Invalid date';
449 function invalidDate () {
450 return this._invalidDate
;
453 var defaultOrdinal
= '%d';
454 var defaultDayOfMonthOrdinalParse
= /\d{1,2}/;
456 function ordinal (number
) {
457 return this._ordinal
.replace('%d', number
);
460 var defaultRelativeTime
= {
477 function relativeTime (number
, withoutSuffix
, string
, isFuture
) {
478 var output
= this._relativeTime
[string
];
479 return (isFunction(output
)) ?
480 output(number
, withoutSuffix
, string
, isFuture
) :
481 output
.replace(/%d/i, number
);
484 function pastFuture (diff
, output
) {
485 var format
= this._relativeTime
[diff
> 0 ? 'future' : 'past'];
486 return isFunction(format
) ? format(output
) : format
.replace(/%s/i, output
);
491 function addUnitAlias (unit
, shorthand
) {
492 var lowerCase
= unit
.toLowerCase();
493 aliases
[lowerCase
] = aliases
[lowerCase
+ 's'] = aliases
[shorthand
] = unit
;
496 function normalizeUnits(units
) {
497 return typeof units
=== 'string' ? aliases
[units
] || aliases
[units
.toLowerCase()] : undefined;
500 function normalizeObjectUnits(inputObject
) {
501 var normalizedInput
= {},
505 for (prop
in inputObject
) {
506 if (hasOwnProp(inputObject
, prop
)) {
507 normalizedProp
= normalizeUnits(prop
);
508 if (normalizedProp
) {
509 normalizedInput
[normalizedProp
] = inputObject
[prop
];
514 return normalizedInput
;
519 function addUnitPriority(unit
, priority
) {
520 priorities
[unit
] = priority
;
523 function getPrioritizedUnits(unitsObj
) {
525 for (var u
in unitsObj
) {
526 units
.push({unit
: u
, priority
: priorities
[u
]});
528 units
.sort(function (a
, b
) {
529 return a
.priority
- b
.priority
;
534 function makeGetSet (unit
, keepTime
) {
535 return function (value
) {
537 set$1(this, unit
, value
);
538 hooks
.updateOffset(this, keepTime
);
541 return get(this, unit
);
546 function get (mom
, unit
) {
547 return mom
.isValid() ?
548 mom
._d
['get' + (mom
._isUTC
? 'UTC' : '') + unit
]() : NaN
;
551 function set$1 (mom
, unit
, value
) {
553 mom
._d
['set' + (mom
._isUTC
? 'UTC' : '') + unit
](value
);
559 function stringGet (units
) {
560 units
= normalizeUnits(units
);
561 if (isFunction(this[units
])) {
562 return this[units
]();
568 function stringSet (units
, value
) {
569 if (typeof units
=== 'object') {
570 units
= normalizeObjectUnits(units
);
571 var prioritized
= getPrioritizedUnits(units
);
572 for (var i
= 0; i
< prioritized
.length
; i
++) {
573 this[prioritized
[i
].unit
](units
[prioritized
[i
].unit
]);
576 units
= normalizeUnits(units
);
577 if (isFunction(this[units
])) {
578 return this[units
](value
);
584 function zeroFill(number
, targetLength
, forceSign
) {
585 var absNumber
= '' + Math
.abs(number
),
586 zerosToFill
= targetLength
- absNumber
.length
,
588 return (sign
? (forceSign
? '+' : '') : '-') +
589 Math
.pow(10, Math
.max(0, zerosToFill
)).toString().substr(1) + absNumber
;
592 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;
594 var localFormattingTokens
= /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
596 var formatFunctions
= {};
598 var formatTokenFunctions
= {};
603 // callback: function () { this.month() + 1 }
604 function addFormatToken (token
, padded
, ordinal
, callback
) {
606 if (typeof callback
=== 'string') {
608 return this[callback
]();
612 formatTokenFunctions
[token
] = func
;
615 formatTokenFunctions
[padded
[0]] = function () {
616 return zeroFill(func
.apply(this, arguments
), padded
[1], padded
[2]);
620 formatTokenFunctions
[ordinal
] = function () {
621 return this.localeData().ordinal(func
.apply(this, arguments
), token
);
626 function removeFormattingTokens(input
) {
627 if (input
.match(/\[[\s\S]/)) {
628 return input
.replace(/^\[|\]$/g, '');
630 return input
.replace(/\\/g
, '');
633 function makeFormatFunction(format
) {
634 var array
= format
.match(formattingTokens
), i
, length
;
636 for (i
= 0, length
= array
.length
; i
< length
; i
++) {
637 if (formatTokenFunctions
[array
[i
]]) {
638 array
[i
] = formatTokenFunctions
[array
[i
]];
640 array
[i
] = removeFormattingTokens(array
[i
]);
644 return function (mom
) {
646 for (i
= 0; i
< length
; i
++) {
647 output
+= isFunction(array
[i
]) ? array
[i
].call(mom
, format
) : array
[i
];
653 // format date using native date object
654 function formatMoment(m
, format
) {
656 return m
.localeData().invalidDate();
659 format
= expandFormat(format
, m
.localeData());
660 formatFunctions
[format
] = formatFunctions
[format
] || makeFormatFunction(format
);
662 return formatFunctions
[format
](m
);
665 function expandFormat(format
, locale
) {
668 function replaceLongDateFormatTokens(input
) {
669 return locale
.longDateFormat(input
) || input
;
672 localFormattingTokens
.lastIndex
= 0;
673 while (i
>= 0 && localFormattingTokens
.test(format
)) {
674 format
= format
.replace(localFormattingTokens
, replaceLongDateFormatTokens
);
675 localFormattingTokens
.lastIndex
= 0;
682 var match1
= /\d/; // 0 - 9
683 var match2
= /\d\d/; // 00 - 99
684 var match3
= /\d{3}/; // 000 - 999
685 var match4
= /\d{4}/; // 0000 - 9999
686 var match6
= /[+-]?\d{6}/; // -999999 - 999999
687 var match1to2
= /\d\d?/; // 0 - 99
688 var match3to4
= /\d\d\d\d?/; // 999 - 9999
689 var match5to6
= /\d\d\d\d\d\d?/; // 99999 - 999999
690 var match1to3
= /\d{1,3}/; // 0 - 999
691 var match1to4
= /\d{1,4}/; // 0 - 9999
692 var match1to6
= /[+-]?\d{1,6}/; // -999999 - 999999
694 var matchUnsigned
= /\d+/; // 0 - inf
695 var matchSigned
= /[+-]?\d+/; // -inf - inf
697 var matchOffset
= /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z
698 var matchShortOffset
= /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z
700 var matchTimestamp
= /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
702 // any word (or two) characters or numbers including two/three word month in arabic.
703 // includes scottish gaelic two word and hyphenated months
704 var matchWord
= /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i;
709 function addRegexToken (token
, regex
, strictRegex
) {
710 regexes
[token
] = isFunction(regex
) ? regex : function (isStrict
, localeData
) {
711 return (isStrict
&& strictRegex
) ? strictRegex
: regex
;
715 function getParseRegexForToken (token
, config
) {
716 if (!hasOwnProp(regexes
, token
)) {
717 return new RegExp(unescapeFormat(token
));
720 return regexes
[token
](config
._strict
, config
._locale
);
723 // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
724 function unescapeFormat(s
) {
725 return regexEscape(s
.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched
, p1
, p2
, p3
, p4
) {
726 return p1
|| p2
|| p3
|| p4
;
730 function regexEscape(s
) {
731 return s
.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
736 function addParseToken (token
, callback
) {
737 var i
, func
= callback
;
738 if (typeof token
=== 'string') {
741 if (isNumber(callback
)) {
742 func = function (input
, array
) {
743 array
[callback
] = toInt(input
);
746 for (i
= 0; i
< token
.length
; i
++) {
747 tokens
[token
[i
]] = func
;
751 function addWeekParseToken (token
, callback
) {
752 addParseToken(token
, function (input
, array
, config
, token
) {
753 config
._w
= config
._w
|| {};
754 callback(input
, config
._w
, config
, token
);
758 function addTimeToArrayFromToken(token
, input
, config
) {
759 if (input
!= null && hasOwnProp(tokens
, token
)) {
760 tokens
[token
](input
, config
._a
, config
, token
);
776 if (Array
.prototype.indexOf
) {
777 indexOf
= Array
.prototype.indexOf
;
779 indexOf = function (o
) {
782 for (i
= 0; i
< this.length
; ++i
) {
791 var indexOf
$1 = indexOf
;
793 function daysInMonth(year
, month
) {
794 return new Date(Date
.UTC(year
, month
+ 1, 0)).getUTCDate();
799 addFormatToken('M', ['MM', 2], 'Mo', function () {
800 return this.month() + 1;
803 addFormatToken('MMM', 0, 0, function (format
) {
804 return this.localeData().monthsShort(this, format
);
807 addFormatToken('MMMM', 0, 0, function (format
) {
808 return this.localeData().months(this, format
);
813 addUnitAlias('month', 'M');
817 addUnitPriority('month', 8);
821 addRegexToken('M', match1to2
);
822 addRegexToken('MM', match1to2
, match2
);
823 addRegexToken('MMM', function (isStrict
, locale
) {
824 return locale
.monthsShortRegex(isStrict
);
826 addRegexToken('MMMM', function (isStrict
, locale
) {
827 return locale
.monthsRegex(isStrict
);
830 addParseToken(['M', 'MM'], function (input
, array
) {
831 array
[MONTH
] = toInt(input
) - 1;
834 addParseToken(['MMM', 'MMMM'], function (input
, array
, config
, token
) {
835 var month
= config
._locale
.monthsParse(input
, token
, config
._strict
);
836 // if we didn't find a month name, mark the date as invalid.
838 array
[MONTH
] = month
;
840 getParsingFlags(config
).invalidMonth
= input
;
846 var MONTHS_IN_FORMAT
= /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;
847 var defaultLocaleMonths
= 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');
848 function localeMonths (m
, format
) {
850 return isArray(this._months
) ? this._months
:
851 this._months
['standalone'];
853 return isArray(this._months
) ? this._months
[m
.month()] :
854 this._months
[(this._months
.isFormat
|| MONTHS_IN_FORMAT
).test(format
) ? 'format' : 'standalone'][m
.month()];
857 var defaultLocaleMonthsShort
= 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
858 function localeMonthsShort (m
, format
) {
860 return isArray(this._monthsShort
) ? this._monthsShort
:
861 this._monthsShort
['standalone'];
863 return isArray(this._monthsShort
) ? this._monthsShort
[m
.month()] :
864 this._monthsShort
[MONTHS_IN_FORMAT
.test(format
) ? 'format' : 'standalone'][m
.month()];
867 function handleStrictParse(monthName
, format
, strict
) {
868 var i
, ii
, mom
, llc
= monthName
.toLocaleLowerCase();
869 if (!this._monthsParse
) {
871 this._monthsParse
= [];
872 this._longMonthsParse
= [];
873 this._shortMonthsParse
= [];
874 for (i
= 0; i
< 12; ++i
) {
875 mom
= createUTC([2000, i
]);
876 this._shortMonthsParse
[i
] = this.monthsShort(mom
, '').toLocaleLowerCase();
877 this._longMonthsParse
[i
] = this.months(mom
, '').toLocaleLowerCase();
882 if (format
=== 'MMM') {
883 ii
= indexOf
$1.call(this._shortMonthsParse
, llc
);
884 return ii
!== -1 ? ii
: null;
886 ii
= indexOf
$1.call(this._longMonthsParse
, llc
);
887 return ii
!== -1 ? ii
: null;
890 if (format
=== 'MMM') {
891 ii
= indexOf
$1.call(this._shortMonthsParse
, llc
);
895 ii
= indexOf
$1.call(this._longMonthsParse
, llc
);
896 return ii
!== -1 ? ii
: null;
898 ii
= indexOf
$1.call(this._longMonthsParse
, llc
);
902 ii
= indexOf
$1.call(this._shortMonthsParse
, llc
);
903 return ii
!== -1 ? ii
: null;
908 function localeMonthsParse (monthName
, format
, strict
) {
911 if (this._monthsParseExact
) {
912 return handleStrictParse
.call(this, monthName
, format
, strict
);
915 if (!this._monthsParse
) {
916 this._monthsParse
= [];
917 this._longMonthsParse
= [];
918 this._shortMonthsParse
= [];
922 // Sorting makes sure if one month (or abbr) is a prefix of another
923 // see sorting in computeMonthsParse
924 for (i
= 0; i
< 12; i
++) {
925 // make the regex if we don't have it already
926 mom
= createUTC([2000, i
]);
927 if (strict
&& !this._longMonthsParse
[i
]) {
928 this._longMonthsParse
[i
] = new RegExp('^' + this.months(mom
, '').replace('.', '') + '$', 'i');
929 this._shortMonthsParse
[i
] = new RegExp('^' + this.monthsShort(mom
, '').replace('.', '') + '$', 'i');
931 if (!strict
&& !this._monthsParse
[i
]) {
932 regex
= '^' + this.months(mom
, '') + '|^' + this.monthsShort(mom
, '');
933 this._monthsParse
[i
] = new RegExp(regex
.replace('.', ''), 'i');
936 if (strict
&& format
=== 'MMMM' && this._longMonthsParse
[i
].test(monthName
)) {
938 } else if (strict
&& format
=== 'MMM' && this._shortMonthsParse
[i
].test(monthName
)) {
940 } else if (!strict
&& this._monthsParse
[i
].test(monthName
)) {
948 function setMonth (mom
, value
) {
951 if (!mom
.isValid()) {
956 if (typeof value
=== 'string') {
957 if (/^\d+$/.test(value
)) {
958 value
= toInt(value
);
960 value
= mom
.localeData().monthsParse(value
);
961 // TODO: Another silent failure?
962 if (!isNumber(value
)) {
968 dayOfMonth
= Math
.min(mom
.date(), daysInMonth(mom
.year(), value
));
969 mom
._d
['set' + (mom
._isUTC
? 'UTC' : '') + 'Month'](value
, dayOfMonth
);
973 function getSetMonth (value
) {
975 setMonth(this, value
);
976 hooks
.updateOffset(this, true);
979 return get(this, 'Month');
983 function getDaysInMonth () {
984 return daysInMonth(this.year(), this.month());
987 var defaultMonthsShortRegex
= matchWord
;
988 function monthsShortRegex (isStrict
) {
989 if (this._monthsParseExact
) {
990 if (!hasOwnProp(this, '_monthsRegex')) {
991 computeMonthsParse
.call(this);
994 return this._monthsShortStrictRegex
;
996 return this._monthsShortRegex
;
999 if (!hasOwnProp(this, '_monthsShortRegex')) {
1000 this._monthsShortRegex
= defaultMonthsShortRegex
;
1002 return this._monthsShortStrictRegex
&& isStrict
?
1003 this._monthsShortStrictRegex
: this._monthsShortRegex
;
1007 var defaultMonthsRegex
= matchWord
;
1008 function monthsRegex (isStrict
) {
1009 if (this._monthsParseExact
) {
1010 if (!hasOwnProp(this, '_monthsRegex')) {
1011 computeMonthsParse
.call(this);
1014 return this._monthsStrictRegex
;
1016 return this._monthsRegex
;
1019 if (!hasOwnProp(this, '_monthsRegex')) {
1020 this._monthsRegex
= defaultMonthsRegex
;
1022 return this._monthsStrictRegex
&& isStrict
?
1023 this._monthsStrictRegex
: this._monthsRegex
;
1027 function computeMonthsParse () {
1028 function cmpLenRev(a
, b
) {
1029 return b
.length
- a
.length
;
1032 var shortPieces
= [], longPieces
= [], mixedPieces
= [],
1034 for (i
= 0; i
< 12; i
++) {
1035 // make the regex if we don't have it already
1036 mom
= createUTC([2000, i
]);
1037 shortPieces
.push(this.monthsShort(mom
, ''));
1038 longPieces
.push(this.months(mom
, ''));
1039 mixedPieces
.push(this.months(mom
, ''));
1040 mixedPieces
.push(this.monthsShort(mom
, ''));
1042 // Sorting makes sure if one month (or abbr) is a prefix of another it
1043 // will match the longer piece.
1044 shortPieces
.sort(cmpLenRev
);
1045 longPieces
.sort(cmpLenRev
);
1046 mixedPieces
.sort(cmpLenRev
);
1047 for (i
= 0; i
< 12; i
++) {
1048 shortPieces
[i
] = regexEscape(shortPieces
[i
]);
1049 longPieces
[i
] = regexEscape(longPieces
[i
]);
1051 for (i
= 0; i
< 24; i
++) {
1052 mixedPieces
[i
] = regexEscape(mixedPieces
[i
]);
1055 this._monthsRegex
= new RegExp('^(' + mixedPieces
.join('|') + ')', 'i');
1056 this._monthsShortRegex
= this._monthsRegex
;
1057 this._monthsStrictRegex
= new RegExp('^(' + longPieces
.join('|') + ')', 'i');
1058 this._monthsShortStrictRegex
= new RegExp('^(' + shortPieces
.join('|') + ')', 'i');
1063 addFormatToken('Y', 0, 0, function () {
1064 var y
= this.year();
1065 return y
<= 9999 ? '' + y
: '+' + y
;
1068 addFormatToken(0, ['YY', 2], 0, function () {
1069 return this.year() % 100;
1072 addFormatToken(0, ['YYYY', 4], 0, 'year');
1073 addFormatToken(0, ['YYYYY', 5], 0, 'year');
1074 addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
1078 addUnitAlias('year', 'y');
1082 addUnitPriority('year', 1);
1086 addRegexToken('Y', matchSigned
);
1087 addRegexToken('YY', match1to2
, match2
);
1088 addRegexToken('YYYY', match1to4
, match4
);
1089 addRegexToken('YYYYY', match1to6
, match6
);
1090 addRegexToken('YYYYYY', match1to6
, match6
);
1092 addParseToken(['YYYYY', 'YYYYYY'], YEAR
);
1093 addParseToken('YYYY', function (input
, array
) {
1094 array
[YEAR
] = input
.length
=== 2 ? hooks
.parseTwoDigitYear(input
) : toInt(input
);
1096 addParseToken('YY', function (input
, array
) {
1097 array
[YEAR
] = hooks
.parseTwoDigitYear(input
);
1099 addParseToken('Y', function (input
, array
) {
1100 array
[YEAR
] = parseInt(input
, 10);
1105 function daysInYear(year
) {
1106 return isLeapYear(year
) ? 366 : 365;
1109 function isLeapYear(year
) {
1110 return (year
% 4 === 0 && year
% 100 !== 0) || year
% 400 === 0;
1115 hooks
.parseTwoDigitYear = function (input
) {
1116 return toInt(input
) + (toInt(input
) > 68 ? 1900 : 2000);
1121 var getSetYear
= makeGetSet('FullYear', true);
1123 function getIsLeapYear () {
1124 return isLeapYear(this.year());
1127 function createDate (y
, m
, d
, h
, M
, s
, ms
) {
1128 // can't just apply() to create a date:
1129 // https://stackoverflow.com/q/181348
1130 var date
= new Date(y
, m
, d
, h
, M
, s
, ms
);
1132 // the date constructor remaps years 0-99 to 1900-1999
1133 if (y
< 100 && y
>= 0 && isFinite(date
.getFullYear())) {
1134 date
.setFullYear(y
);
1139 function createUTCDate (y
) {
1140 var date
= new Date(Date
.UTC
.apply(null, arguments
));
1142 // the Date.UTC function remaps years 0-99 to 1900-1999
1143 if (y
< 100 && y
>= 0 && isFinite(date
.getUTCFullYear())) {
1144 date
.setUTCFullYear(y
);
1149 // start-of-first-week - start-of-year
1150 function firstWeekOffset(year
, dow
, doy
) {
1151 var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
1152 fwd
= 7 + dow
- doy
,
1153 // first-week day local weekday -- which local weekday is fwd
1154 fwdlw
= (7 + createUTCDate(year
, 0, fwd
).getUTCDay() - dow
) % 7;
1156 return -fwdlw
+ fwd
- 1;
1159 // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
1160 function dayOfYearFromWeeks(year
, week
, weekday
, dow
, doy
) {
1161 var localWeekday
= (7 + weekday
- dow
) % 7,
1162 weekOffset
= firstWeekOffset(year
, dow
, doy
),
1163 dayOfYear
= 1 + 7 * (week
- 1) + localWeekday
+ weekOffset
,
1164 resYear
, resDayOfYear
;
1166 if (dayOfYear
<= 0) {
1168 resDayOfYear
= daysInYear(resYear
) + dayOfYear
;
1169 } else if (dayOfYear
> daysInYear(year
)) {
1171 resDayOfYear
= dayOfYear
- daysInYear(year
);
1174 resDayOfYear
= dayOfYear
;
1179 dayOfYear
: resDayOfYear
1183 function weekOfYear(mom
, dow
, doy
) {
1184 var weekOffset
= firstWeekOffset(mom
.year(), dow
, doy
),
1185 week
= Math
.floor((mom
.dayOfYear() - weekOffset
- 1) / 7) + 1,
1189 resYear
= mom
.year() - 1;
1190 resWeek
= week
+ weeksInYear(resYear
, dow
, doy
);
1191 } else if (week
> weeksInYear(mom
.year(), dow
, doy
)) {
1192 resWeek
= week
- weeksInYear(mom
.year(), dow
, doy
);
1193 resYear
= mom
.year() + 1;
1195 resYear
= mom
.year();
1205 function weeksInYear(year
, dow
, doy
) {
1206 var weekOffset
= firstWeekOffset(year
, dow
, doy
),
1207 weekOffsetNext
= firstWeekOffset(year
+ 1, dow
, doy
);
1208 return (daysInYear(year
) - weekOffset
+ weekOffsetNext
) / 7;
1213 addFormatToken('w', ['ww', 2], 'wo', 'week');
1214 addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
1218 addUnitAlias('week', 'w');
1219 addUnitAlias('isoWeek', 'W');
1223 addUnitPriority('week', 5);
1224 addUnitPriority('isoWeek', 5);
1228 addRegexToken('w', match1to2
);
1229 addRegexToken('ww', match1to2
, match2
);
1230 addRegexToken('W', match1to2
);
1231 addRegexToken('WW', match1to2
, match2
);
1233 addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input
, week
, config
, token
) {
1234 week
[token
.substr(0, 1)] = toInt(input
);
1241 function localeWeek (mom
) {
1242 return weekOfYear(mom
, this._week
.dow
, this._week
.doy
).week
;
1245 var defaultLocaleWeek
= {
1246 dow
: 0, // Sunday is the first day of the week.
1247 doy
: 6 // The week that contains Jan 1st is the first week of the year.
1250 function localeFirstDayOfWeek () {
1251 return this._week
.dow
;
1254 function localeFirstDayOfYear () {
1255 return this._week
.doy
;
1260 function getSetWeek (input
) {
1261 var week
= this.localeData().week(this);
1262 return input
== null ? week
: this.add((input
- week
) * 7, 'd');
1265 function getSetISOWeek (input
) {
1266 var week
= weekOfYear(this, 1, 4).week
;
1267 return input
== null ? week
: this.add((input
- week
) * 7, 'd');
1272 addFormatToken('d', 0, 'do', 'day');
1274 addFormatToken('dd', 0, 0, function (format
) {
1275 return this.localeData().weekdaysMin(this, format
);
1278 addFormatToken('ddd', 0, 0, function (format
) {
1279 return this.localeData().weekdaysShort(this, format
);
1282 addFormatToken('dddd', 0, 0, function (format
) {
1283 return this.localeData().weekdays(this, format
);
1286 addFormatToken('e', 0, 0, 'weekday');
1287 addFormatToken('E', 0, 0, 'isoWeekday');
1291 addUnitAlias('day', 'd');
1292 addUnitAlias('weekday', 'e');
1293 addUnitAlias('isoWeekday', 'E');
1296 addUnitPriority('day', 11);
1297 addUnitPriority('weekday', 11);
1298 addUnitPriority('isoWeekday', 11);
1302 addRegexToken('d', match1to2
);
1303 addRegexToken('e', match1to2
);
1304 addRegexToken('E', match1to2
);
1305 addRegexToken('dd', function (isStrict
, locale
) {
1306 return locale
.weekdaysMinRegex(isStrict
);
1308 addRegexToken('ddd', function (isStrict
, locale
) {
1309 return locale
.weekdaysShortRegex(isStrict
);
1311 addRegexToken('dddd', function (isStrict
, locale
) {
1312 return locale
.weekdaysRegex(isStrict
);
1315 addWeekParseToken(['dd', 'ddd', 'dddd'], function (input
, week
, config
, token
) {
1316 var weekday
= config
._locale
.weekdaysParse(input
, token
, config
._strict
);
1317 // if we didn't get a weekday name, mark the date as invalid
1318 if (weekday
!= null) {
1321 getParsingFlags(config
).invalidWeekday
= input
;
1325 addWeekParseToken(['d', 'e', 'E'], function (input
, week
, config
, token
) {
1326 week
[token
] = toInt(input
);
1331 function parseWeekday(input
, locale
) {
1332 if (typeof input
!== 'string') {
1336 if (!isNaN(input
)) {
1337 return parseInt(input
, 10);
1340 input
= locale
.weekdaysParse(input
);
1341 if (typeof input
=== 'number') {
1348 function parseIsoWeekday(input
, locale
) {
1349 if (typeof input
=== 'string') {
1350 return locale
.weekdaysParse(input
) % 7 || 7;
1352 return isNaN(input
) ? null : input
;
1357 var defaultLocaleWeekdays
= 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
1358 function localeWeekdays (m
, format
) {
1360 return isArray(this._weekdays
) ? this._weekdays
:
1361 this._weekdays
['standalone'];
1363 return isArray(this._weekdays
) ? this._weekdays
[m
.day()] :
1364 this._weekdays
[this._weekdays
.isFormat
.test(format
) ? 'format' : 'standalone'][m
.day()];
1367 var defaultLocaleWeekdaysShort
= 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
1368 function localeWeekdaysShort (m
) {
1369 return (m
) ? this._weekdaysShort
[m
.day()] : this._weekdaysShort
;
1372 var defaultLocaleWeekdaysMin
= 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
1373 function localeWeekdaysMin (m
) {
1374 return (m
) ? this._weekdaysMin
[m
.day()] : this._weekdaysMin
;
1377 function handleStrictParse
$1(weekdayName
, format
, strict
) {
1378 var i
, ii
, mom
, llc
= weekdayName
.toLocaleLowerCase();
1379 if (!this._weekdaysParse
) {
1380 this._weekdaysParse
= [];
1381 this._shortWeekdaysParse
= [];
1382 this._minWeekdaysParse
= [];
1384 for (i
= 0; i
< 7; ++i
) {
1385 mom
= createUTC([2000, 1]).day(i
);
1386 this._minWeekdaysParse
[i
] = this.weekdaysMin(mom
, '').toLocaleLowerCase();
1387 this._shortWeekdaysParse
[i
] = this.weekdaysShort(mom
, '').toLocaleLowerCase();
1388 this._weekdaysParse
[i
] = this.weekdays(mom
, '').toLocaleLowerCase();
1393 if (format
=== 'dddd') {
1394 ii
= indexOf
$1.call(this._weekdaysParse
, llc
);
1395 return ii
!== -1 ? ii
: null;
1396 } else if (format
=== 'ddd') {
1397 ii
= indexOf
$1.call(this._shortWeekdaysParse
, llc
);
1398 return ii
!== -1 ? ii
: null;
1400 ii
= indexOf
$1.call(this._minWeekdaysParse
, llc
);
1401 return ii
!== -1 ? ii
: null;
1404 if (format
=== 'dddd') {
1405 ii
= indexOf
$1.call(this._weekdaysParse
, llc
);
1409 ii
= indexOf
$1.call(this._shortWeekdaysParse
, llc
);
1413 ii
= indexOf
$1.call(this._minWeekdaysParse
, llc
);
1414 return ii
!== -1 ? ii
: null;
1415 } else if (format
=== 'ddd') {
1416 ii
= indexOf
$1.call(this._shortWeekdaysParse
, llc
);
1420 ii
= indexOf
$1.call(this._weekdaysParse
, llc
);
1424 ii
= indexOf
$1.call(this._minWeekdaysParse
, llc
);
1425 return ii
!== -1 ? ii
: null;
1427 ii
= indexOf
$1.call(this._minWeekdaysParse
, llc
);
1431 ii
= indexOf
$1.call(this._weekdaysParse
, llc
);
1435 ii
= indexOf
$1.call(this._shortWeekdaysParse
, llc
);
1436 return ii
!== -1 ? ii
: null;
1441 function localeWeekdaysParse (weekdayName
, format
, strict
) {
1444 if (this._weekdaysParseExact
) {
1445 return handleStrictParse
$1.call(this, weekdayName
, format
, strict
);
1448 if (!this._weekdaysParse
) {
1449 this._weekdaysParse
= [];
1450 this._minWeekdaysParse
= [];
1451 this._shortWeekdaysParse
= [];
1452 this._fullWeekdaysParse
= [];
1455 for (i
= 0; i
< 7; i
++) {
1456 // make the regex if we don't have it already
1458 mom
= createUTC([2000, 1]).day(i
);
1459 if (strict
&& !this._fullWeekdaysParse
[i
]) {
1460 this._fullWeekdaysParse
[i
] = new RegExp('^' + this.weekdays(mom
, '').replace('.', '\.?') + '$', 'i');
1461 this._shortWeekdaysParse
[i
] = new RegExp('^' + this.weekdaysShort(mom
, '').replace('.', '\.?') + '$', 'i');
1462 this._minWeekdaysParse
[i
] = new RegExp('^' + this.weekdaysMin(mom
, '').replace('.', '\.?') + '$', 'i');
1464 if (!this._weekdaysParse
[i
]) {
1465 regex
= '^' + this.weekdays(mom
, '') + '|^' + this.weekdaysShort(mom
, '') + '|^' + this.weekdaysMin(mom
, '');
1466 this._weekdaysParse
[i
] = new RegExp(regex
.replace('.', ''), 'i');
1469 if (strict
&& format
=== 'dddd' && this._fullWeekdaysParse
[i
].test(weekdayName
)) {
1471 } else if (strict
&& format
=== 'ddd' && this._shortWeekdaysParse
[i
].test(weekdayName
)) {
1473 } else if (strict
&& format
=== 'dd' && this._minWeekdaysParse
[i
].test(weekdayName
)) {
1475 } else if (!strict
&& this._weekdaysParse
[i
].test(weekdayName
)) {
1483 function getSetDayOfWeek (input
) {
1484 if (!this.isValid()) {
1485 return input
!= null ? this : NaN
;
1487 var day
= this._isUTC
? this._d
.getUTCDay() : this._d
.getDay();
1488 if (input
!= null) {
1489 input
= parseWeekday(input
, this.localeData());
1490 return this.add(input
- day
, 'd');
1496 function getSetLocaleDayOfWeek (input
) {
1497 if (!this.isValid()) {
1498 return input
!= null ? this : NaN
;
1500 var weekday
= (this.day() + 7 - this.localeData()._week
.dow
) % 7;
1501 return input
== null ? weekday
: this.add(input
- weekday
, 'd');
1504 function getSetISODayOfWeek (input
) {
1505 if (!this.isValid()) {
1506 return input
!= null ? this : NaN
;
1509 // behaves the same as moment#day except
1510 // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
1511 // as a setter, sunday should belong to the previous week.
1513 if (input
!= null) {
1514 var weekday
= parseIsoWeekday(input
, this.localeData());
1515 return this.day(this.day() % 7 ? weekday
: weekday
- 7);
1517 return this.day() || 7;
1521 var defaultWeekdaysRegex
= matchWord
;
1522 function weekdaysRegex (isStrict
) {
1523 if (this._weekdaysParseExact
) {
1524 if (!hasOwnProp(this, '_weekdaysRegex')) {
1525 computeWeekdaysParse
.call(this);
1528 return this._weekdaysStrictRegex
;
1530 return this._weekdaysRegex
;
1533 if (!hasOwnProp(this, '_weekdaysRegex')) {
1534 this._weekdaysRegex
= defaultWeekdaysRegex
;
1536 return this._weekdaysStrictRegex
&& isStrict
?
1537 this._weekdaysStrictRegex
: this._weekdaysRegex
;
1541 var defaultWeekdaysShortRegex
= matchWord
;
1542 function weekdaysShortRegex (isStrict
) {
1543 if (this._weekdaysParseExact
) {
1544 if (!hasOwnProp(this, '_weekdaysRegex')) {
1545 computeWeekdaysParse
.call(this);
1548 return this._weekdaysShortStrictRegex
;
1550 return this._weekdaysShortRegex
;
1553 if (!hasOwnProp(this, '_weekdaysShortRegex')) {
1554 this._weekdaysShortRegex
= defaultWeekdaysShortRegex
;
1556 return this._weekdaysShortStrictRegex
&& isStrict
?
1557 this._weekdaysShortStrictRegex
: this._weekdaysShortRegex
;
1561 var defaultWeekdaysMinRegex
= matchWord
;
1562 function weekdaysMinRegex (isStrict
) {
1563 if (this._weekdaysParseExact
) {
1564 if (!hasOwnProp(this, '_weekdaysRegex')) {
1565 computeWeekdaysParse
.call(this);
1568 return this._weekdaysMinStrictRegex
;
1570 return this._weekdaysMinRegex
;
1573 if (!hasOwnProp(this, '_weekdaysMinRegex')) {
1574 this._weekdaysMinRegex
= defaultWeekdaysMinRegex
;
1576 return this._weekdaysMinStrictRegex
&& isStrict
?
1577 this._weekdaysMinStrictRegex
: this._weekdaysMinRegex
;
1582 function computeWeekdaysParse () {
1583 function cmpLenRev(a
, b
) {
1584 return b
.length
- a
.length
;
1587 var minPieces
= [], shortPieces
= [], longPieces
= [], mixedPieces
= [],
1588 i
, mom
, minp
, shortp
, longp
;
1589 for (i
= 0; i
< 7; i
++) {
1590 // make the regex if we don't have it already
1591 mom
= createUTC([2000, 1]).day(i
);
1592 minp
= this.weekdaysMin(mom
, '');
1593 shortp
= this.weekdaysShort(mom
, '');
1594 longp
= this.weekdays(mom
, '');
1595 minPieces
.push(minp
);
1596 shortPieces
.push(shortp
);
1597 longPieces
.push(longp
);
1598 mixedPieces
.push(minp
);
1599 mixedPieces
.push(shortp
);
1600 mixedPieces
.push(longp
);
1602 // Sorting makes sure if one weekday (or abbr) is a prefix of another it
1603 // will match the longer piece.
1604 minPieces
.sort(cmpLenRev
);
1605 shortPieces
.sort(cmpLenRev
);
1606 longPieces
.sort(cmpLenRev
);
1607 mixedPieces
.sort(cmpLenRev
);
1608 for (i
= 0; i
< 7; i
++) {
1609 shortPieces
[i
] = regexEscape(shortPieces
[i
]);
1610 longPieces
[i
] = regexEscape(longPieces
[i
]);
1611 mixedPieces
[i
] = regexEscape(mixedPieces
[i
]);
1614 this._weekdaysRegex
= new RegExp('^(' + mixedPieces
.join('|') + ')', 'i');
1615 this._weekdaysShortRegex
= this._weekdaysRegex
;
1616 this._weekdaysMinRegex
= this._weekdaysRegex
;
1618 this._weekdaysStrictRegex
= new RegExp('^(' + longPieces
.join('|') + ')', 'i');
1619 this._weekdaysShortStrictRegex
= new RegExp('^(' + shortPieces
.join('|') + ')', 'i');
1620 this._weekdaysMinStrictRegex
= new RegExp('^(' + minPieces
.join('|') + ')', 'i');
1625 function hFormat() {
1626 return this.hours() % 12 || 12;
1629 function kFormat() {
1630 return this.hours() || 24;
1633 addFormatToken('H', ['HH', 2], 0, 'hour');
1634 addFormatToken('h', ['hh', 2], 0, hFormat
);
1635 addFormatToken('k', ['kk', 2], 0, kFormat
);
1637 addFormatToken('hmm', 0, 0, function () {
1638 return '' + hFormat
.apply(this) + zeroFill(this.minutes(), 2);
1641 addFormatToken('hmmss', 0, 0, function () {
1642 return '' + hFormat
.apply(this) + zeroFill(this.minutes(), 2) +
1643 zeroFill(this.seconds(), 2);
1646 addFormatToken('Hmm', 0, 0, function () {
1647 return '' + this.hours() + zeroFill(this.minutes(), 2);
1650 addFormatToken('Hmmss', 0, 0, function () {
1651 return '' + this.hours() + zeroFill(this.minutes(), 2) +
1652 zeroFill(this.seconds(), 2);
1655 function meridiem (token
, lowercase
) {
1656 addFormatToken(token
, 0, 0, function () {
1657 return this.localeData().meridiem(this.hours(), this.minutes(), lowercase
);
1661 meridiem('a', true);
1662 meridiem('A', false);
1666 addUnitAlias('hour', 'h');
1669 addUnitPriority('hour', 13);
1673 function matchMeridiem (isStrict
, locale
) {
1674 return locale
._meridiemParse
;
1677 addRegexToken('a', matchMeridiem
);
1678 addRegexToken('A', matchMeridiem
);
1679 addRegexToken('H', match1to2
);
1680 addRegexToken('h', match1to2
);
1681 addRegexToken('k', match1to2
);
1682 addRegexToken('HH', match1to2
, match2
);
1683 addRegexToken('hh', match1to2
, match2
);
1684 addRegexToken('kk', match1to2
, match2
);
1686 addRegexToken('hmm', match3to4
);
1687 addRegexToken('hmmss', match5to6
);
1688 addRegexToken('Hmm', match3to4
);
1689 addRegexToken('Hmmss', match5to6
);
1691 addParseToken(['H', 'HH'], HOUR
);
1692 addParseToken(['k', 'kk'], function (input
, array
, config
) {
1693 var kInput
= toInt(input
);
1694 array
[HOUR
] = kInput
=== 24 ? 0 : kInput
;
1696 addParseToken(['a', 'A'], function (input
, array
, config
) {
1697 config
._isPm
= config
._locale
.isPM(input
);
1698 config
._meridiem
= input
;
1700 addParseToken(['h', 'hh'], function (input
, array
, config
) {
1701 array
[HOUR
] = toInt(input
);
1702 getParsingFlags(config
).bigHour
= true;
1704 addParseToken('hmm', function (input
, array
, config
) {
1705 var pos
= input
.length
- 2;
1706 array
[HOUR
] = toInt(input
.substr(0, pos
));
1707 array
[MINUTE
] = toInt(input
.substr(pos
));
1708 getParsingFlags(config
).bigHour
= true;
1710 addParseToken('hmmss', function (input
, array
, config
) {
1711 var pos1
= input
.length
- 4;
1712 var pos2
= input
.length
- 2;
1713 array
[HOUR
] = toInt(input
.substr(0, pos1
));
1714 array
[MINUTE
] = toInt(input
.substr(pos1
, 2));
1715 array
[SECOND
] = toInt(input
.substr(pos2
));
1716 getParsingFlags(config
).bigHour
= true;
1718 addParseToken('Hmm', function (input
, array
, config
) {
1719 var pos
= input
.length
- 2;
1720 array
[HOUR
] = toInt(input
.substr(0, pos
));
1721 array
[MINUTE
] = toInt(input
.substr(pos
));
1723 addParseToken('Hmmss', function (input
, array
, config
) {
1724 var pos1
= input
.length
- 4;
1725 var pos2
= input
.length
- 2;
1726 array
[HOUR
] = toInt(input
.substr(0, pos1
));
1727 array
[MINUTE
] = toInt(input
.substr(pos1
, 2));
1728 array
[SECOND
] = toInt(input
.substr(pos2
));
1733 function localeIsPM (input
) {
1734 // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
1735 // Using charAt should be more compatible.
1736 return ((input
+ '').toLowerCase().charAt(0) === 'p');
1739 var defaultLocaleMeridiemParse
= /[ap]\.?m?\.?/i;
1740 function localeMeridiem (hours
, minutes
, isLower
) {
1742 return isLower
? 'pm' : 'PM';
1744 return isLower
? 'am' : 'AM';
1751 // Setting the hour should keep the time, because the user explicitly
1752 // specified which hour he wants. So trying to maintain the same hour (in
1753 // a new timezone) makes sense. Adding/subtracting hours does not follow
1755 var getSetHour
= makeGetSet('Hours', true);
1762 calendar
: defaultCalendar
,
1763 longDateFormat
: defaultLongDateFormat
,
1764 invalidDate
: defaultInvalidDate
,
1765 ordinal
: defaultOrdinal
,
1766 dayOfMonthOrdinalParse
: defaultDayOfMonthOrdinalParse
,
1767 relativeTime
: defaultRelativeTime
,
1769 months
: defaultLocaleMonths
,
1770 monthsShort
: defaultLocaleMonthsShort
,
1772 week
: defaultLocaleWeek
,
1774 weekdays
: defaultLocaleWeekdays
,
1775 weekdaysMin
: defaultLocaleWeekdaysMin
,
1776 weekdaysShort
: defaultLocaleWeekdaysShort
,
1778 meridiemParse
: defaultLocaleMeridiemParse
1781 // internal storage for locale config files
1783 var localeFamilies
= {};
1786 function normalizeLocale(key
) {
1787 return key
? key
.toLowerCase().replace('_', '-') : key
;
1790 // pick the locale from the array
1791 // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
1792 // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
1793 function chooseLocale(names
) {
1794 var i
= 0, j
, next
, locale
, split
;
1796 while (i
< names
.length
) {
1797 split
= normalizeLocale(names
[i
]).split('-');
1799 next
= normalizeLocale(names
[i
+ 1]);
1800 next
= next
? next
.split('-') : null;
1802 locale
= loadLocale(split
.slice(0, j
).join('-'));
1806 if (next
&& next
.length
>= j
&& compareArrays(split
, next
, true) >= j
- 1) {
1807 //the next array item is better than a shallower substring of this one
1817 function loadLocale(name
) {
1818 var oldLocale
= null;
1819 // TODO: Find a better way to register and load all the locales in Node
1820 if (!locales
[name
] && (typeof module
!== 'undefined') &&
1821 module
&& module
.exports
) {
1823 oldLocale
= globalLocale
._abbr
;
1824 require('./locale/' + name
);
1825 // because defineLocale currently also sets the global locale, we
1826 // want to undo that for lazy loaded locales
1827 getSetGlobalLocale(oldLocale
);
1830 return locales
[name
];
1833 // This function will load locale and then set the global locale. If
1834 // no arguments are passed in, it will simply return the current global
1836 function getSetGlobalLocale (key
, values
) {
1839 if (isUndefined(values
)) {
1840 data
= getLocale(key
);
1843 data
= defineLocale(key
, values
);
1847 // moment.duration._locale = moment._locale = data;
1848 globalLocale
= data
;
1852 return globalLocale
._abbr
;
1855 function defineLocale (name
, config
) {
1856 if (config
!== null) {
1857 var parentConfig
= baseConfig
;
1859 if (locales
[name
] != null) {
1860 deprecateSimple('defineLocaleOverride',
1861 'use moment.updateLocale(localeName, config) to change ' +
1862 'an existing locale. moment.defineLocale(localeName, ' +
1863 'config) should only be used for creating a new locale ' +
1864 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
1865 parentConfig
= locales
[name
]._config
;
1866 } else if (config
.parentLocale
!= null) {
1867 if (locales
[config
.parentLocale
] != null) {
1868 parentConfig
= locales
[config
.parentLocale
]._config
;
1870 if (!localeFamilies
[config
.parentLocale
]) {
1871 localeFamilies
[config
.parentLocale
] = [];
1873 localeFamilies
[config
.parentLocale
].push({
1880 locales
[name
] = new Locale(mergeConfigs(parentConfig
, config
));
1882 if (localeFamilies
[name
]) {
1883 localeFamilies
[name
].forEach(function (x
) {
1884 defineLocale(x
.name
, x
.config
);
1888 // backwards compat for now: also set the locale
1889 // make sure we set the locale AFTER all child locales have been
1890 // created, so we won't end up with the child locale set.
1891 getSetGlobalLocale(name
);
1894 return locales
[name
];
1896 // useful for testing
1897 delete locales
[name
];
1902 function updateLocale(name
, config
) {
1903 if (config
!= null) {
1904 var locale
, parentConfig
= baseConfig
;
1906 if (locales
[name
] != null) {
1907 parentConfig
= locales
[name
]._config
;
1909 config
= mergeConfigs(parentConfig
, config
);
1910 locale
= new Locale(config
);
1911 locale
.parentLocale
= locales
[name
];
1912 locales
[name
] = locale
;
1914 // backwards compat for now: also set the locale
1915 getSetGlobalLocale(name
);
1917 // pass null for config to unupdate, useful for tests
1918 if (locales
[name
] != null) {
1919 if (locales
[name
].parentLocale
!= null) {
1920 locales
[name
] = locales
[name
].parentLocale
;
1921 } else if (locales
[name
] != null) {
1922 delete locales
[name
];
1926 return locales
[name
];
1929 // returns locale data
1930 function getLocale (key
) {
1933 if (key
&& key
._locale
&& key
._locale
._abbr
) {
1934 key
= key
._locale
._abbr
;
1938 return globalLocale
;
1941 if (!isArray(key
)) {
1942 //short-circuit everything else
1943 locale
= loadLocale(key
);
1950 return chooseLocale(key
);
1953 function listLocales() {
1954 return keys
$1(locales
);
1957 function checkOverflow (m
) {
1961 if (a
&& getParsingFlags(m
).overflow
=== -2) {
1963 a
[MONTH
] < 0 || a
[MONTH
] > 11 ? MONTH
:
1964 a
[DATE
] < 1 || a
[DATE
] > daysInMonth(a
[YEAR
], a
[MONTH
]) ? DATE
:
1965 a
[HOUR
] < 0 || a
[HOUR
] > 24 || (a
[HOUR
] === 24 && (a
[MINUTE
] !== 0 || a
[SECOND
] !== 0 || a
[MILLISECOND
] !== 0)) ? HOUR
:
1966 a
[MINUTE
] < 0 || a
[MINUTE
] > 59 ? MINUTE
:
1967 a
[SECOND
] < 0 || a
[SECOND
] > 59 ? SECOND
:
1968 a
[MILLISECOND
] < 0 || a
[MILLISECOND
] > 999 ? MILLISECOND
:
1971 if (getParsingFlags(m
)._overflowDayOfYear
&& (overflow
< YEAR
|| overflow
> DATE
)) {
1974 if (getParsingFlags(m
)._overflowWeeks
&& overflow
=== -1) {
1977 if (getParsingFlags(m
)._overflowWeekday
&& overflow
=== -1) {
1981 getParsingFlags(m
).overflow
= overflow
;
1988 // 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)
1989 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)?)?$/;
1990 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)?)?$/;
1992 var tzRegex
= /Z|[+-]\d\d(?::?\d\d)?/;
1995 ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
1996 ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
1997 ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
1998 ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
1999 ['YYYY-DDD', /\d{4}-\d{3}/],
2000 ['YYYY-MM', /\d{4}-\d\d/, false],
2001 ['YYYYYYMMDD', /[+-]\d{10}/],
2002 ['YYYYMMDD', /\d{8}/],
2003 // YYYYMM is NOT allowed by the standard
2004 ['GGGG[W]WWE', /\d{4}W\d{3}/],
2005 ['GGGG[W]WW', /\d{4}W\d{2}/, false],
2006 ['YYYYDDD', /\d{7}/]
2009 // iso time formats and regexes
2011 ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
2012 ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
2013 ['HH:mm:ss', /\d\d:\d\d:\d\d/],
2014 ['HH:mm', /\d\d:\d\d/],
2015 ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
2016 ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
2017 ['HHmmss', /\d\d\d\d\d\d/],
2018 ['HHmm', /\d\d\d\d/],
2022 var aspNetJsonRegex
= /^\/?Date\((\-?\d+)/i;
2024 // date from iso format
2025 function configFromISO(config
) {
2028 match
= extendedIsoRegex
.exec(string
) || basicIsoRegex
.exec(string
),
2029 allowTime
, dateFormat
, timeFormat
, tzFormat
;
2032 getParsingFlags(config
).iso
= true;
2034 for (i
= 0, l
= isoDates
.length
; i
< l
; i
++) {
2035 if (isoDates
[i
][1].exec(match
[1])) {
2036 dateFormat
= isoDates
[i
][0];
2037 allowTime
= isoDates
[i
][2] !== false;
2041 if (dateFormat
== null) {
2042 config
._isValid
= false;
2046 for (i
= 0, l
= isoTimes
.length
; i
< l
; i
++) {
2047 if (isoTimes
[i
][1].exec(match
[3])) {
2048 // match[2] should be 'T' or space
2049 timeFormat
= (match
[2] || ' ') + isoTimes
[i
][0];
2053 if (timeFormat
== null) {
2054 config
._isValid
= false;
2058 if (!allowTime
&& timeFormat
!= null) {
2059 config
._isValid
= false;
2063 if (tzRegex
.exec(match
[4])) {
2066 config
._isValid
= false;
2070 config
._f
= dateFormat
+ (timeFormat
|| '') + (tzFormat
|| '');
2071 configFromStringAndFormat(config
);
2073 config
._isValid
= false;
2077 // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
2078 var basicRfcRegex
= /^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;
2080 // date and time from ref 2822 format
2081 function configFromRFC2822(config
) {
2082 var string
, match
, dayFormat
,
2083 dateFormat
, timeFormat
, tzFormat
;
2095 var military
= 'YXWVUTSRQPONZABCDEFGHIKLM';
2096 var timezone
, timezoneIndex
;
2099 .replace(/\([^\)]*\)|[\n\t]/g, ' ') // Remove comments and folding whitespace
2100 .replace(/(\s\s+)/g, ' ') // Replace multiple-spaces with a single space
2101 .replace(/^\s|\s$/g, ''); // Remove leading and trailing spaces
2102 match
= basicRfcRegex
.exec(string
);
2105 dayFormat
= match
[1] ? 'ddd' + ((match
[1].length
=== 5) ? ', ' : ' ') : '';
2106 dateFormat
= 'D MMM ' + ((match
[2].length
> 10) ? 'YYYY ' : 'YY ');
2107 timeFormat
= 'HH:mm' + (match
[4] ? ':ss' : '');
2109 // TODO: Replace the vanilla JS Date object with an indepentent day-of-week check.
2110 if (match
[1]) { // day of week given
2111 var momentDate
= new Date(match
[2]);
2112 var momentDay
= ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'][momentDate
.getDay()];
2114 if (match
[1].substr(0,3) !== momentDay
) {
2115 getParsingFlags(config
).weekdayMismatch
= true;
2116 config
._isValid
= false;
2121 switch (match
[5].length
) {
2123 if (timezoneIndex
=== 0) {
2124 timezone
= ' +0000';
2126 timezoneIndex
= military
.indexOf(match
[5][1].toUpperCase()) - 12;
2127 timezone
= ((timezoneIndex
< 0) ? ' -' : ' +') +
2128 (('' + timezoneIndex
).replace(/^-?/, '0')).match(/..$/)[0] + '00';
2132 timezone
= timezones
[match
[5]];
2134 default: // UT or +/-9999
2135 timezone
= timezones
[' GMT'];
2137 match
[5] = timezone
;
2138 config
._i
= match
.splice(1).join('');
2140 config
._f
= dayFormat
+ dateFormat
+ timeFormat
+ tzFormat
;
2141 configFromStringAndFormat(config
);
2142 getParsingFlags(config
).rfc2822
= true;
2144 config
._isValid
= false;
2148 // date from iso format or fallback
2149 function configFromString(config
) {
2150 var matched
= aspNetJsonRegex
.exec(config
._i
);
2152 if (matched
!== null) {
2153 config
._d
= new Date(+matched
[1]);
2157 configFromISO(config
);
2158 if (config
._isValid
=== false) {
2159 delete config
._isValid
;
2164 configFromRFC2822(config
);
2165 if (config
._isValid
=== false) {
2166 delete config
._isValid
;
2171 // Final attempt, use Input Fallback
2172 hooks
.createFromInputFallback(config
);
2175 hooks
.createFromInputFallback
= deprecate(
2176 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
2177 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
2178 'discouraged and will be removed in an upcoming major release. Please refer to ' +
2179 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
2181 config
._d
= new Date(config
._i
+ (config
._useUTC
? ' UTC' : ''));
2185 // Pick the first defined of two or three arguments.
2186 function defaults(a
, b
, c
) {
2196 function currentDateArray(config
) {
2197 // hooks is actually the exported moment object
2198 var nowValue
= new Date(hooks
.now());
2199 if (config
._useUTC
) {
2200 return [nowValue
.getUTCFullYear(), nowValue
.getUTCMonth(), nowValue
.getUTCDate()];
2202 return [nowValue
.getFullYear(), nowValue
.getMonth(), nowValue
.getDate()];
2205 // convert an array to a date.
2206 // the array should mirror the parameters below
2207 // note: all values past the year are optional and will default to the lowest possible value.
2208 // [year, month, day , hour, minute, second, millisecond]
2209 function configFromArray (config
) {
2210 var i
, date
, input
= [], currentDate
, yearToUse
;
2216 currentDate
= currentDateArray(config
);
2218 //compute day of the year from weeks and weekdays
2219 if (config
._w
&& config
._a
[DATE
] == null && config
._a
[MONTH
] == null) {
2220 dayOfYearFromWeekInfo(config
);
2223 //if the day of the year is set, figure out what it is
2224 if (config
._dayOfYear
!= null) {
2225 yearToUse
= defaults(config
._a
[YEAR
], currentDate
[YEAR
]);
2227 if (config
._dayOfYear
> daysInYear(yearToUse
) || config
._dayOfYear
=== 0) {
2228 getParsingFlags(config
)._overflowDayOfYear
= true;
2231 date
= createUTCDate(yearToUse
, 0, config
._dayOfYear
);
2232 config
._a
[MONTH
] = date
.getUTCMonth();
2233 config
._a
[DATE
] = date
.getUTCDate();
2236 // Default to current date.
2237 // * if no year, month, day of month are given, default to today
2238 // * if day of month is given, default month and year
2239 // * if month is given, default only year
2240 // * if year is given, don't default anything
2241 for (i
= 0; i
< 3 && config
._a
[i
] == null; ++i
) {
2242 config
._a
[i
] = input
[i
] = currentDate
[i
];
2245 // Zero out whatever was not defaulted, including time
2246 for (; i
< 7; i
++) {
2247 config
._a
[i
] = input
[i
] = (config
._a
[i
] == null) ? (i
=== 2 ? 1 : 0) : config
._a
[i
];
2250 // Check for 24:00:00.000
2251 if (config
._a
[HOUR
] === 24 &&
2252 config
._a
[MINUTE
] === 0 &&
2253 config
._a
[SECOND
] === 0 &&
2254 config
._a
[MILLISECOND
] === 0) {
2255 config
._nextDay
= true;
2256 config
._a
[HOUR
] = 0;
2259 config
._d
= (config
._useUTC
? createUTCDate
: createDate
).apply(null, input
);
2260 // Apply timezone offset from input. The actual utcOffset can be changed
2262 if (config
._tzm
!= null) {
2263 config
._d
.setUTCMinutes(config
._d
.getUTCMinutes() - config
._tzm
);
2266 if (config
._nextDay
) {
2267 config
._a
[HOUR
] = 24;
2271 function dayOfYearFromWeekInfo(config
) {
2272 var w
, weekYear
, week
, weekday
, dow
, doy
, temp
, weekdayOverflow
;
2275 if (w
.GG
!= null || w
.W
!= null || w
.E
!= null) {
2279 // TODO: We need to take the current isoWeekYear, but that depends on
2280 // how we interpret now (local, utc, fixed offset). So create
2281 // a now version of current config (take local/utc/offset flags, and
2283 weekYear
= defaults(w
.GG
, config
._a
[YEAR
], weekOfYear(createLocal(), 1, 4).year
);
2284 week
= defaults(w
.W
, 1);
2285 weekday
= defaults(w
.E
, 1);
2286 if (weekday
< 1 || weekday
> 7) {
2287 weekdayOverflow
= true;
2290 dow
= config
._locale
._week
.dow
;
2291 doy
= config
._locale
._week
.doy
;
2293 var curWeek
= weekOfYear(createLocal(), dow
, doy
);
2295 weekYear
= defaults(w
.gg
, config
._a
[YEAR
], curWeek
.year
);
2297 // Default to current week.
2298 week
= defaults(w
.w
, curWeek
.week
);
2301 // weekday -- low day numbers are considered next week
2303 if (weekday
< 0 || weekday
> 6) {
2304 weekdayOverflow
= true;
2306 } else if (w
.e
!= null) {
2307 // local weekday -- counting starts from begining of week
2308 weekday
= w
.e
+ dow
;
2309 if (w
.e
< 0 || w
.e
> 6) {
2310 weekdayOverflow
= true;
2313 // default to begining of week
2317 if (week
< 1 || week
> weeksInYear(weekYear
, dow
, doy
)) {
2318 getParsingFlags(config
)._overflowWeeks
= true;
2319 } else if (weekdayOverflow
!= null) {
2320 getParsingFlags(config
)._overflowWeekday
= true;
2322 temp
= dayOfYearFromWeeks(weekYear
, week
, weekday
, dow
, doy
);
2323 config
._a
[YEAR
] = temp
.year
;
2324 config
._dayOfYear
= temp
.dayOfYear
;
2328 // constant that refers to the ISO standard
2329 hooks
.ISO_8601 = function () {};
2331 // constant that refers to the RFC 2822 form
2332 hooks
.RFC_2822 = function () {};
2334 // date from string and format string
2335 function configFromStringAndFormat(config
) {
2336 // TODO: Move this to another part of the creation flow to prevent circular deps
2337 if (config
._f
=== hooks
.ISO_8601
) {
2338 configFromISO(config
);
2341 if (config
._f
=== hooks
.RFC_2822
) {
2342 configFromRFC2822(config
);
2346 getParsingFlags(config
).empty
= true;
2348 // This array is used to make a Date, either with `new Date` or `Date.UTC`
2349 var string
= '' + config
._i
,
2350 i
, parsedInput
, tokens
, token
, skipped
,
2351 stringLength
= string
.length
,
2352 totalParsedInputLength
= 0;
2354 tokens
= expandFormat(config
._f
, config
._locale
).match(formattingTokens
) || [];
2356 for (i
= 0; i
< tokens
.length
; i
++) {
2358 parsedInput
= (string
.match(getParseRegexForToken(token
, config
)) || [])[0];
2359 // console.log('token', token, 'parsedInput', parsedInput,
2360 // 'regex', getParseRegexForToken(token, config));
2362 skipped
= string
.substr(0, string
.indexOf(parsedInput
));
2363 if (skipped
.length
> 0) {
2364 getParsingFlags(config
).unusedInput
.push(skipped
);
2366 string
= string
.slice(string
.indexOf(parsedInput
) + parsedInput
.length
);
2367 totalParsedInputLength
+= parsedInput
.length
;
2369 // don't parse if it's not a known token
2370 if (formatTokenFunctions
[token
]) {
2372 getParsingFlags(config
).empty
= false;
2375 getParsingFlags(config
).unusedTokens
.push(token
);
2377 addTimeToArrayFromToken(token
, parsedInput
, config
);
2379 else if (config
._strict
&& !parsedInput
) {
2380 getParsingFlags(config
).unusedTokens
.push(token
);
2384 // add remaining unparsed input length to the string
2385 getParsingFlags(config
).charsLeftOver
= stringLength
- totalParsedInputLength
;
2386 if (string
.length
> 0) {
2387 getParsingFlags(config
).unusedInput
.push(string
);
2390 // clear _12h flag if hour is <= 12
2391 if (config
._a
[HOUR
] <= 12 &&
2392 getParsingFlags(config
).bigHour
=== true &&
2393 config
._a
[HOUR
] > 0) {
2394 getParsingFlags(config
).bigHour
= undefined;
2397 getParsingFlags(config
).parsedDateParts
= config
._a
.slice(0);
2398 getParsingFlags(config
).meridiem
= config
._meridiem
;
2400 config
._a
[HOUR
] = meridiemFixWrap(config
._locale
, config
._a
[HOUR
], config
._meridiem
);
2402 configFromArray(config
);
2403 checkOverflow(config
);
2407 function meridiemFixWrap (locale
, hour
, meridiem
) {
2410 if (meridiem
== null) {
2414 if (locale
.meridiemHour
!= null) {
2415 return locale
.meridiemHour(hour
, meridiem
);
2416 } else if (locale
.isPM
!= null) {
2418 isPm
= locale
.isPM(meridiem
);
2419 if (isPm
&& hour
< 12) {
2422 if (!isPm
&& hour
=== 12) {
2427 // this is not supposed to happen
2432 // date from string and array of format strings
2433 function configFromStringAndArray(config
) {
2441 if (config
._f
.length
=== 0) {
2442 getParsingFlags(config
).invalidFormat
= true;
2443 config
._d
= new Date(NaN
);
2447 for (i
= 0; i
< config
._f
.length
; i
++) {
2449 tempConfig
= copyConfig({}, config
);
2450 if (config
._useUTC
!= null) {
2451 tempConfig
._useUTC
= config
._useUTC
;
2453 tempConfig
._f
= config
._f
[i
];
2454 configFromStringAndFormat(tempConfig
);
2456 if (!isValid(tempConfig
)) {
2460 // if there is any input that was not parsed add a penalty for that format
2461 currentScore
+= getParsingFlags(tempConfig
).charsLeftOver
;
2464 currentScore
+= getParsingFlags(tempConfig
).unusedTokens
.length
* 10;
2466 getParsingFlags(tempConfig
).score
= currentScore
;
2468 if (scoreToBeat
== null || currentScore
< scoreToBeat
) {
2469 scoreToBeat
= currentScore
;
2470 bestMoment
= tempConfig
;
2474 extend(config
, bestMoment
|| tempConfig
);
2477 function configFromObject(config
) {
2482 var i
= normalizeObjectUnits(config
._i
);
2483 config
._a
= map([i
.year
, i
.month
, i
.day
|| i
.date
, i
.hour
, i
.minute
, i
.second
, i
.millisecond
], function (obj
) {
2484 return obj
&& parseInt(obj
, 10);
2487 configFromArray(config
);
2490 function createFromConfig (config
) {
2491 var res
= new Moment(checkOverflow(prepareConfig(config
)));
2493 // Adding is smart enough around DST
2495 res
._nextDay
= undefined;
2501 function prepareConfig (config
) {
2502 var input
= config
._i
,
2505 config
._locale
= config
._locale
|| getLocale(config
._l
);
2507 if (input
=== null || (format
=== undefined && input
=== '')) {
2508 return createInvalid({nullInput
: true});
2511 if (typeof input
=== 'string') {
2512 config
._i
= input
= config
._locale
.preparse(input
);
2515 if (isMoment(input
)) {
2516 return new Moment(checkOverflow(input
));
2517 } else if (isDate(input
)) {
2519 } else if (isArray(format
)) {
2520 configFromStringAndArray(config
);
2521 } else if (format
) {
2522 configFromStringAndFormat(config
);
2524 configFromInput(config
);
2527 if (!isValid(config
)) {
2534 function configFromInput(config
) {
2535 var input
= config
._i
;
2536 if (isUndefined(input
)) {
2537 config
._d
= new Date(hooks
.now());
2538 } else if (isDate(input
)) {
2539 config
._d
= new Date(input
.valueOf());
2540 } else if (typeof input
=== 'string') {
2541 configFromString(config
);
2542 } else if (isArray(input
)) {
2543 config
._a
= map(input
.slice(0), function (obj
) {
2544 return parseInt(obj
, 10);
2546 configFromArray(config
);
2547 } else if (isObject(input
)) {
2548 configFromObject(config
);
2549 } else if (isNumber(input
)) {
2550 // from milliseconds
2551 config
._d
= new Date(input
);
2553 hooks
.createFromInputFallback(config
);
2557 function createLocalOrUTC (input
, format
, locale
, strict
, isUTC
) {
2560 if (locale
=== true || locale
=== false) {
2565 if ((isObject(input
) && isObjectEmpty(input
)) ||
2566 (isArray(input
) && input
.length
=== 0)) {
2569 // object construction must be done this way.
2570 // https://github.com/moment/moment/issues/1423
2571 c
._isAMomentObject
= true;
2572 c
._useUTC
= c
._isUTC
= isUTC
;
2578 return createFromConfig(c
);
2581 function createLocal (input
, format
, locale
, strict
) {
2582 return createLocalOrUTC(input
, format
, locale
, strict
, false);
2585 var prototypeMin
= deprecate(
2586 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
2588 var other
= createLocal
.apply(null, arguments
);
2589 if (this.isValid() && other
.isValid()) {
2590 return other
< this ? this : other
;
2592 return createInvalid();
2597 var prototypeMax
= deprecate(
2598 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
2600 var other
= createLocal
.apply(null, arguments
);
2601 if (this.isValid() && other
.isValid()) {
2602 return other
> this ? this : other
;
2604 return createInvalid();
2609 // Pick a moment m from moments so that m[fn](other) is true for all
2610 // other. This relies on the function fn to be transitive.
2612 // moments should either be an array of moment objects or an array, whose
2613 // first element is an array of moment objects.
2614 function pickBy(fn
, moments
) {
2616 if (moments
.length
=== 1 && isArray(moments
[0])) {
2617 moments
= moments
[0];
2619 if (!moments
.length
) {
2620 return createLocal();
2623 for (i
= 1; i
< moments
.length
; ++i
) {
2624 if (!moments
[i
].isValid() || moments
[i
][fn
](res
)) {
2631 // TODO: Use [].sort instead?
2633 var args
= [].slice
.call(arguments
, 0);
2635 return pickBy('isBefore', args
);
2639 var args
= [].slice
.call(arguments
, 0);
2641 return pickBy('isAfter', args
);
2644 var now = function () {
2645 return Date
.now
? Date
.now() : +(new Date());
2648 var ordering
= ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];
2650 function isDurationValid(m
) {
2651 for (var key
in m
) {
2652 if (!(ordering
.indexOf(key
) !== -1 && (m
[key
] == null || !isNaN(m
[key
])))) {
2657 var unitHasDecimal
= false;
2658 for (var i
= 0; i
< ordering
.length
; ++i
) {
2659 if (m
[ordering
[i
]]) {
2660 if (unitHasDecimal
) {
2661 return false; // only allow non-integers for smallest unit
2663 if (parseFloat(m
[ordering
[i
]]) !== toInt(m
[ordering
[i
]])) {
2664 unitHasDecimal
= true;
2672 function isValid
$1() {
2673 return this._isValid
;
2676 function createInvalid
$1() {
2677 return createDuration(NaN
);
2680 function Duration (duration
) {
2681 var normalizedInput
= normalizeObjectUnits(duration
),
2682 years
= normalizedInput
.year
|| 0,
2683 quarters
= normalizedInput
.quarter
|| 0,
2684 months
= normalizedInput
.month
|| 0,
2685 weeks
= normalizedInput
.week
|| 0,
2686 days
= normalizedInput
.day
|| 0,
2687 hours
= normalizedInput
.hour
|| 0,
2688 minutes
= normalizedInput
.minute
|| 0,
2689 seconds
= normalizedInput
.second
|| 0,
2690 milliseconds
= normalizedInput
.millisecond
|| 0;
2692 this._isValid
= isDurationValid(normalizedInput
);
2694 // representation for dateAddRemove
2695 this._milliseconds
= +milliseconds
+
2696 seconds
* 1e3
+ // 1000
2697 minutes
* 6e4
+ // 1000 * 60
2698 hours
* 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
2699 // Because of dateAddRemove treats 24 hours as different from a
2700 // day when working around DST, we need to store them separately
2701 this._days
= +days
+
2703 // It is impossible translate months into days without knowing
2704 // which months you are are talking about, so we have to store
2706 this._months
= +months
+
2712 this._locale
= getLocale();
2717 function isDuration (obj
) {
2718 return obj
instanceof Duration
;
2721 function absRound (number
) {
2723 return Math
.round(-1 * number
) * -1;
2725 return Math
.round(number
);
2731 function offset (token
, separator
) {
2732 addFormatToken(token
, 0, 0, function () {
2733 var offset
= this.utcOffset();
2739 return sign
+ zeroFill(~~(offset
/ 60), 2) + separator
+ zeroFill(~~(offset
) % 60, 2);
2748 addRegexToken('Z', matchShortOffset
);
2749 addRegexToken('ZZ', matchShortOffset
);
2750 addParseToken(['Z', 'ZZ'], function (input
, array
, config
) {
2751 config
._useUTC
= true;
2752 config
._tzm
= offsetFromString(matchShortOffset
, input
);
2758 // '+10:00' > ['10', '00']
2759 // '-1530' > ['-15', '30']
2760 var chunkOffset
= /([\+\-]|\d\d)/gi;
2762 function offsetFromString(matcher
, string
) {
2763 var matches
= (string
|| '').match(matcher
);
2765 if (matches
=== null) {
2769 var chunk
= matches
[matches
.length
- 1] || [];
2770 var parts
= (chunk
+ '').match(chunkOffset
) || ['-', 0, 0];
2771 var minutes
= +(parts
[1] * 60) + toInt(parts
[2]);
2773 return minutes
=== 0 ?
2775 parts
[0] === '+' ? minutes
: -minutes
;
2778 // Return a moment from input, that is local/utc/zone equivalent to model.
2779 function cloneWithOffset(input
, model
) {
2782 res
= model
.clone();
2783 diff
= (isMoment(input
) || isDate(input
) ? input
.valueOf() : createLocal(input
).valueOf()) - res
.valueOf();
2784 // Use low-level api, because this fn is low-level api.
2785 res
._d
.setTime(res
._d
.valueOf() + diff
);
2786 hooks
.updateOffset(res
, false);
2789 return createLocal(input
).local();
2793 function getDateOffset (m
) {
2794 // On Firefox.24 Date#getTimezoneOffset returns a floating point.
2795 // https://github.com/moment/moment/pull/1871
2796 return -Math
.round(m
._d
.getTimezoneOffset() / 15) * 15;
2801 // This function will be called whenever a moment is mutated.
2802 // It is intended to keep the offset in sync with the timezone.
2803 hooks
.updateOffset = function () {};
2807 // keepLocalTime = true means only change the timezone, without
2808 // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
2809 // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
2810 // +0200, so we adjust the time as needed, to be valid.
2812 // Keeping the time actually adds/subtracts (one hour)
2813 // from the actual represented time. That is why we call updateOffset
2814 // a second time. In case it wants us to change the offset again
2815 // _changeInProgress == true case, then we have to adjust, because
2816 // there is no such time in the given timezone.
2817 function getSetOffset (input
, keepLocalTime
, keepMinutes
) {
2818 var offset
= this._offset
|| 0,
2820 if (!this.isValid()) {
2821 return input
!= null ? this : NaN
;
2823 if (input
!= null) {
2824 if (typeof input
=== 'string') {
2825 input
= offsetFromString(matchShortOffset
, input
);
2826 if (input
=== null) {
2829 } else if (Math
.abs(input
) < 16 && !keepMinutes
) {
2832 if (!this._isUTC
&& keepLocalTime
) {
2833 localAdjust
= getDateOffset(this);
2835 this._offset
= input
;
2837 if (localAdjust
!= null) {
2838 this.add(localAdjust
, 'm');
2840 if (offset
!== input
) {
2841 if (!keepLocalTime
|| this._changeInProgress
) {
2842 addSubtract(this, createDuration(input
- offset
, 'm'), 1, false);
2843 } else if (!this._changeInProgress
) {
2844 this._changeInProgress
= true;
2845 hooks
.updateOffset(this, true);
2846 this._changeInProgress
= null;
2851 return this._isUTC
? offset
: getDateOffset(this);
2855 function getSetZone (input
, keepLocalTime
) {
2856 if (input
!= null) {
2857 if (typeof input
!== 'string') {
2861 this.utcOffset(input
, keepLocalTime
);
2865 return -this.utcOffset();
2869 function setOffsetToUTC (keepLocalTime
) {
2870 return this.utcOffset(0, keepLocalTime
);
2873 function setOffsetToLocal (keepLocalTime
) {
2875 this.utcOffset(0, keepLocalTime
);
2876 this._isUTC
= false;
2878 if (keepLocalTime
) {
2879 this.subtract(getDateOffset(this), 'm');
2885 function setOffsetToParsedOffset () {
2886 if (this._tzm
!= null) {
2887 this.utcOffset(this._tzm
, false, true);
2888 } else if (typeof this._i
=== 'string') {
2889 var tZone
= offsetFromString(matchOffset
, this._i
);
2890 if (tZone
!= null) {
2891 this.utcOffset(tZone
);
2894 this.utcOffset(0, true);
2900 function hasAlignedHourOffset (input
) {
2901 if (!this.isValid()) {
2904 input
= input
? createLocal(input
).utcOffset() : 0;
2906 return (this.utcOffset() - input
) % 60 === 0;
2909 function isDaylightSavingTime () {
2911 this.utcOffset() > this.clone().month(0).utcOffset() ||
2912 this.utcOffset() > this.clone().month(5).utcOffset()
2916 function isDaylightSavingTimeShifted () {
2917 if (!isUndefined(this._isDSTShifted
)) {
2918 return this._isDSTShifted
;
2923 copyConfig(c
, this);
2924 c
= prepareConfig(c
);
2927 var other
= c
._isUTC
? createUTC(c
._a
) : createLocal(c
._a
);
2928 this._isDSTShifted
= this.isValid() &&
2929 compareArrays(c
._a
, other
.toArray()) > 0;
2931 this._isDSTShifted
= false;
2934 return this._isDSTShifted
;
2937 function isLocal () {
2938 return this.isValid() ? !this._isUTC
: false;
2941 function isUtcOffset () {
2942 return this.isValid() ? this._isUTC
: false;
2946 return this.isValid() ? this._isUTC
&& this._offset
=== 0 : false;
2949 // ASP.NET json date format regex
2950 var aspNetRegex
= /^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/;
2952 // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
2953 // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
2954 // and further modified to allow for strings containing both week and day
2955 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)?)?$/;
2957 function createDuration (input
, key
) {
2958 var duration
= input
,
2959 // matching against regexp is expensive, do it on demand
2965 if (isDuration(input
)) {
2967 ms
: input
._milliseconds
,
2971 } else if (isNumber(input
)) {
2974 duration
[key
] = input
;
2976 duration
.milliseconds
= input
;
2978 } else if (!!(match
= aspNetRegex
.exec(input
))) {
2979 sign
= (match
[1] === '-') ? -1 : 1;
2982 d
: toInt(match
[DATE
]) * sign
,
2983 h
: toInt(match
[HOUR
]) * sign
,
2984 m
: toInt(match
[MINUTE
]) * sign
,
2985 s
: toInt(match
[SECOND
]) * sign
,
2986 ms
: toInt(absRound(match
[MILLISECOND
] * 1000)) * sign
// the millisecond decimal point is included in the match
2988 } else if (!!(match
= isoRegex
.exec(input
))) {
2989 sign
= (match
[1] === '-') ? -1 : 1;
2991 y
: parseIso(match
[2], sign
),
2992 M
: parseIso(match
[3], sign
),
2993 w
: parseIso(match
[4], sign
),
2994 d
: parseIso(match
[5], sign
),
2995 h
: parseIso(match
[6], sign
),
2996 m
: parseIso(match
[7], sign
),
2997 s
: parseIso(match
[8], sign
)
2999 } else if (duration
== null) {// checks for null or undefined
3001 } else if (typeof duration
=== 'object' && ('from' in duration
|| 'to' in duration
)) {
3002 diffRes
= momentsDifference(createLocal(duration
.from), createLocal(duration
.to
));
3005 duration
.ms
= diffRes
.milliseconds
;
3006 duration
.M
= diffRes
.months
;
3009 ret
= new Duration(duration
);
3011 if (isDuration(input
) && hasOwnProp(input
, '_locale')) {
3012 ret
._locale
= input
._locale
;
3018 createDuration
.fn
= Duration
.prototype;
3019 createDuration
.invalid
= createInvalid
$1;
3021 function parseIso (inp
, sign
) {
3022 // We'd normally use ~~inp for this, but unfortunately it also
3023 // converts floats to ints.
3024 // inp may be undefined, so careful calling replace on it.
3025 var res
= inp
&& parseFloat(inp
.replace(',', '.'));
3026 // apply sign while we're at it
3027 return (isNaN(res
) ? 0 : res
) * sign
;
3030 function positiveMomentsDifference(base
, other
) {
3031 var res
= {milliseconds
: 0, months
: 0};
3033 res
.months
= other
.month() - base
.month() +
3034 (other
.year() - base
.year()) * 12;
3035 if (base
.clone().add(res
.months
, 'M').isAfter(other
)) {
3039 res
.milliseconds
= +other
- +(base
.clone().add(res
.months
, 'M'));
3044 function momentsDifference(base
, other
) {
3046 if (!(base
.isValid() && other
.isValid())) {
3047 return {milliseconds
: 0, months
: 0};
3050 other
= cloneWithOffset(other
, base
);
3051 if (base
.isBefore(other
)) {
3052 res
= positiveMomentsDifference(base
, other
);
3054 res
= positiveMomentsDifference(other
, base
);
3055 res
.milliseconds
= -res
.milliseconds
;
3056 res
.months
= -res
.months
;
3062 // TODO: remove 'name' arg after deprecation is removed
3063 function createAdder(direction
, name
) {
3064 return function (val
, period
) {
3066 //invert the arguments, but complain about it
3067 if (period
!== null && !isNaN(+period
)) {
3068 deprecateSimple(name
, 'moment().' + name
+ '(period, number) is deprecated. Please use moment().' + name
+ '(number, period). ' +
3069 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
3070 tmp
= val
; val
= period
; period
= tmp
;
3073 val
= typeof val
=== 'string' ? +val
: val
;
3074 dur
= createDuration(val
, period
);
3075 addSubtract(this, dur
, direction
);
3080 function addSubtract (mom
, duration
, isAdding
, updateOffset
) {
3081 var milliseconds
= duration
._milliseconds
,
3082 days
= absRound(duration
._days
),
3083 months
= absRound(duration
._months
);
3085 if (!mom
.isValid()) {
3090 updateOffset
= updateOffset
== null ? true : updateOffset
;
3093 mom
._d
.setTime(mom
._d
.valueOf() + milliseconds
* isAdding
);
3096 set$1(mom
, 'Date', get(mom
, 'Date') + days
* isAdding
);
3099 setMonth(mom
, get(mom
, 'Month') + months
* isAdding
);
3102 hooks
.updateOffset(mom
, days
|| months
);
3106 var add
= createAdder(1, 'add');
3107 var subtract
= createAdder(-1, 'subtract');
3109 function getCalendarFormat(myMoment
, now
) {
3110 var diff
= myMoment
.diff(now
, 'days', true);
3111 return diff
< -6 ? 'sameElse' :
3112 diff
< -1 ? 'lastWeek' :
3113 diff
< 0 ? 'lastDay' :
3114 diff
< 1 ? 'sameDay' :
3115 diff
< 2 ? 'nextDay' :
3116 diff
< 7 ? 'nextWeek' : 'sameElse';
3119 function calendar
$1 (time
, formats
) {
3120 // We want to compare the start of today, vs this.
3121 // Getting start-of-today depends on whether we're local/utc/offset or not.
3122 var now
= time
|| createLocal(),
3123 sod
= cloneWithOffset(now
, this).startOf('day'),
3124 format
= hooks
.calendarFormat(this, sod
) || 'sameElse';
3126 var output
= formats
&& (isFunction(formats
[format
]) ? formats
[format
].call(this, now
) : formats
[format
]);
3128 return this.format(output
|| this.localeData().calendar(format
, this, createLocal(now
)));
3132 return new Moment(this);
3135 function isAfter (input
, units
) {
3136 var localInput
= isMoment(input
) ? input
: createLocal(input
);
3137 if (!(this.isValid() && localInput
.isValid())) {
3140 units
= normalizeUnits(!isUndefined(units
) ? units
: 'millisecond');
3141 if (units
=== 'millisecond') {
3142 return this.valueOf() > localInput
.valueOf();
3144 return localInput
.valueOf() < this.clone().startOf(units
).valueOf();
3148 function isBefore (input
, units
) {
3149 var localInput
= isMoment(input
) ? input
: createLocal(input
);
3150 if (!(this.isValid() && localInput
.isValid())) {
3153 units
= normalizeUnits(!isUndefined(units
) ? units
: 'millisecond');
3154 if (units
=== 'millisecond') {
3155 return this.valueOf() < localInput
.valueOf();
3157 return this.clone().endOf(units
).valueOf() < localInput
.valueOf();
3161 function isBetween (from, to
, units
, inclusivity
) {
3162 inclusivity
= inclusivity
|| '()';
3163 return (inclusivity
[0] === '(' ? this.isAfter(from, units
) : !this.isBefore(from, units
)) &&
3164 (inclusivity
[1] === ')' ? this.isBefore(to
, units
) : !this.isAfter(to
, units
));
3167 function isSame (input
, units
) {
3168 var localInput
= isMoment(input
) ? input
: createLocal(input
),
3170 if (!(this.isValid() && localInput
.isValid())) {
3173 units
= normalizeUnits(units
|| 'millisecond');
3174 if (units
=== 'millisecond') {
3175 return this.valueOf() === localInput
.valueOf();
3177 inputMs
= localInput
.valueOf();
3178 return this.clone().startOf(units
).valueOf() <= inputMs
&& inputMs
<= this.clone().endOf(units
).valueOf();
3182 function isSameOrAfter (input
, units
) {
3183 return this.isSame(input
, units
) || this.isAfter(input
,units
);
3186 function isSameOrBefore (input
, units
) {
3187 return this.isSame(input
, units
) || this.isBefore(input
,units
);
3190 function diff (input
, units
, asFloat
) {
3195 if (!this.isValid()) {
3199 that
= cloneWithOffset(input
, this);
3201 if (!that
.isValid()) {
3205 zoneDelta
= (that
.utcOffset() - this.utcOffset()) * 6e4
;
3207 units
= normalizeUnits(units
);
3209 if (units
=== 'year' || units
=== 'month' || units
=== 'quarter') {
3210 output
= monthDiff(this, that
);
3211 if (units
=== 'quarter') {
3212 output
= output
/ 3;
3213 } else if (units
=== 'year') {
3214 output
= output
/ 12;
3217 delta
= this - that
;
3218 output
= units
=== 'second' ? delta
/ 1e3
: // 1000
3219 units
=== 'minute' ? delta
/ 6e4
: // 1000 * 60
3220 units
=== 'hour' ? delta
/ 36e5
: // 1000 * 60 * 60
3221 units
=== 'day' ? (delta
- zoneDelta
) / 864e5
: // 1000 * 60 * 60 * 24, negate dst
3222 units
=== 'week' ? (delta
- zoneDelta
) / 6048e5
: // 1000 * 60 * 60 * 24 * 7, negate dst
3225 return asFloat
? output
: absFloor(output
);
3228 function monthDiff (a
, b
) {
3229 // difference in months
3230 var wholeMonthDiff
= ((b
.year() - a
.year()) * 12) + (b
.month() - a
.month()),
3231 // b is in (anchor - 1 month, anchor + 1 month)
3232 anchor
= a
.clone().add(wholeMonthDiff
, 'months'),
3235 if (b
- anchor
< 0) {
3236 anchor2
= a
.clone().add(wholeMonthDiff
- 1, 'months');
3237 // linear across the month
3238 adjust
= (b
- anchor
) / (anchor
- anchor2
);
3240 anchor2
= a
.clone().add(wholeMonthDiff
+ 1, 'months');
3241 // linear across the month
3242 adjust
= (b
- anchor
) / (anchor2
- anchor
);
3245 //check for negative zero, return zero if negative zero
3246 return -(wholeMonthDiff
+ adjust
) || 0;
3249 hooks
.defaultFormat
= 'YYYY-MM-DDTHH:mm:ssZ';
3250 hooks
.defaultFormatUtc
= 'YYYY-MM-DDTHH:mm:ss[Z]';
3252 function toString () {
3253 return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
3256 function toISOString() {
3257 if (!this.isValid()) {
3260 var m
= this.clone().utc();
3261 if (m
.year() < 0 || m
.year() > 9999) {
3262 return formatMoment(m
, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
3264 if (isFunction(Date
.prototype.toISOString
)) {
3265 // native implementation is ~50x faster, use it when we can
3266 return this.toDate().toISOString();
3268 return formatMoment(m
, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
3272 * Return a human readable representation of a moment that can
3273 * also be evaluated to get a new moment which is the same
3275 * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
3277 function inspect () {
3278 if (!this.isValid()) {
3279 return 'moment.invalid(/* ' + this._i
+ ' */)';
3281 var func
= 'moment';
3283 if (!this.isLocal()) {
3284 func
= this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
3287 var prefix
= '[' + func
+ '("]';
3288 var year
= (0 <= this.year() && this.year() <= 9999) ? 'YYYY' : 'YYYYYY';
3289 var datetime
= '-MM-DD[T]HH:mm:ss.SSS';
3290 var suffix
= zone
+ '[")]';
3292 return this.format(prefix
+ year
+ datetime
+ suffix
);
3295 function format (inputString
) {
3297 inputString
= this.isUtc() ? hooks
.defaultFormatUtc
: hooks
.defaultFormat
;
3299 var output
= formatMoment(this, inputString
);
3300 return this.localeData().postformat(output
);
3303 function from (time
, withoutSuffix
) {
3304 if (this.isValid() &&
3305 ((isMoment(time
) && time
.isValid()) ||
3306 createLocal(time
).isValid())) {
3307 return createDuration({to
: this, from: time
}).locale(this.locale()).humanize(!withoutSuffix
);
3309 return this.localeData().invalidDate();
3313 function fromNow (withoutSuffix
) {
3314 return this.from(createLocal(), withoutSuffix
);
3317 function to (time
, withoutSuffix
) {
3318 if (this.isValid() &&
3319 ((isMoment(time
) && time
.isValid()) ||
3320 createLocal(time
).isValid())) {
3321 return createDuration({from: this, to
: time
}).locale(this.locale()).humanize(!withoutSuffix
);
3323 return this.localeData().invalidDate();
3327 function toNow (withoutSuffix
) {
3328 return this.to(createLocal(), withoutSuffix
);
3331 // If passed a locale key, it will set the locale for this
3332 // instance. Otherwise, it will return the locale configuration
3333 // variables for this instance.
3334 function locale (key
) {
3337 if (key
=== undefined) {
3338 return this._locale
._abbr
;
3340 newLocaleData
= getLocale(key
);
3341 if (newLocaleData
!= null) {
3342 this._locale
= newLocaleData
;
3348 var lang
= deprecate(
3349 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
3351 if (key
=== undefined) {
3352 return this.localeData();
3354 return this.locale(key
);
3359 function localeData () {
3360 return this._locale
;
3363 function startOf (units
) {
3364 units
= normalizeUnits(units
);
3365 // the following switch intentionally omits break keywords
3366 // to utilize falling through the cases.
3388 this.milliseconds(0);
3391 // weeks are a special case
3392 if (units
=== 'week') {
3395 if (units
=== 'isoWeek') {
3399 // quarters are also special
3400 if (units
=== 'quarter') {
3401 this.month(Math
.floor(this.month() / 3) * 3);
3407 function endOf (units
) {
3408 units
= normalizeUnits(units
);
3409 if (units
=== undefined || units
=== 'millisecond') {
3413 // 'date' is an alias for 'day', so it should be considered as such.
3414 if (units
=== 'date') {
3418 return this.startOf(units
).add(1, (units
=== 'isoWeek' ? 'week' : units
)).subtract(1, 'ms');
3421 function valueOf () {
3422 return this._d
.valueOf() - ((this._offset
|| 0) * 60000);
3426 return Math
.floor(this.valueOf() / 1000);
3429 function toDate () {
3430 return new Date(this.valueOf());
3433 function toArray () {
3435 return [m
.year(), m
.month(), m
.date(), m
.hour(), m
.minute(), m
.second(), m
.millisecond()];
3438 function toObject () {
3445 minutes
: m
.minutes(),
3446 seconds
: m
.seconds(),
3447 milliseconds
: m
.milliseconds()
3451 function toJSON () {
3452 // new Date(NaN).toJSON() === null
3453 return this.isValid() ? this.toISOString() : null;
3456 function isValid
$2 () {
3457 return isValid(this);
3460 function parsingFlags () {
3461 return extend({}, getParsingFlags(this));
3464 function invalidAt () {
3465 return getParsingFlags(this).overflow
;
3468 function creationData() {
3472 locale
: this._locale
,
3474 strict
: this._strict
3480 addFormatToken(0, ['gg', 2], 0, function () {
3481 return this.weekYear() % 100;
3484 addFormatToken(0, ['GG', 2], 0, function () {
3485 return this.isoWeekYear() % 100;
3488 function addWeekYearFormatToken (token
, getter
) {
3489 addFormatToken(0, [token
, token
.length
], 0, getter
);
3492 addWeekYearFormatToken('gggg', 'weekYear');
3493 addWeekYearFormatToken('ggggg', 'weekYear');
3494 addWeekYearFormatToken('GGGG', 'isoWeekYear');
3495 addWeekYearFormatToken('GGGGG', 'isoWeekYear');
3499 addUnitAlias('weekYear', 'gg');
3500 addUnitAlias('isoWeekYear', 'GG');
3504 addUnitPriority('weekYear', 1);
3505 addUnitPriority('isoWeekYear', 1);
3510 addRegexToken('G', matchSigned
);
3511 addRegexToken('g', matchSigned
);
3512 addRegexToken('GG', match1to2
, match2
);
3513 addRegexToken('gg', match1to2
, match2
);
3514 addRegexToken('GGGG', match1to4
, match4
);
3515 addRegexToken('gggg', match1to4
, match4
);
3516 addRegexToken('GGGGG', match1to6
, match6
);
3517 addRegexToken('ggggg', match1to6
, match6
);
3519 addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input
, week
, config
, token
) {
3520 week
[token
.substr(0, 2)] = toInt(input
);
3523 addWeekParseToken(['gg', 'GG'], function (input
, week
, config
, token
) {
3524 week
[token
] = hooks
.parseTwoDigitYear(input
);
3529 function getSetWeekYear (input
) {
3530 return getSetWeekYearHelper
.call(this,
3534 this.localeData()._week
.dow
,
3535 this.localeData()._week
.doy
);
3538 function getSetISOWeekYear (input
) {
3539 return getSetWeekYearHelper
.call(this,
3540 input
, this.isoWeek(), this.isoWeekday(), 1, 4);
3543 function getISOWeeksInYear () {
3544 return weeksInYear(this.year(), 1, 4);
3547 function getWeeksInYear () {
3548 var weekInfo
= this.localeData()._week
;
3549 return weeksInYear(this.year(), weekInfo
.dow
, weekInfo
.doy
);
3552 function getSetWeekYearHelper(input
, week
, weekday
, dow
, doy
) {
3554 if (input
== null) {
3555 return weekOfYear(this, dow
, doy
).year
;
3557 weeksTarget
= weeksInYear(input
, dow
, doy
);
3558 if (week
> weeksTarget
) {
3561 return setWeekAll
.call(this, input
, week
, weekday
, dow
, doy
);
3565 function setWeekAll(weekYear
, week
, weekday
, dow
, doy
) {
3566 var dayOfYearData
= dayOfYearFromWeeks(weekYear
, week
, weekday
, dow
, doy
),
3567 date
= createUTCDate(dayOfYearData
.year
, 0, dayOfYearData
.dayOfYear
);
3569 this.year(date
.getUTCFullYear());
3570 this.month(date
.getUTCMonth());
3571 this.date(date
.getUTCDate());
3577 addFormatToken('Q', 0, 'Qo', 'quarter');
3581 addUnitAlias('quarter', 'Q');
3585 addUnitPriority('quarter', 7);
3589 addRegexToken('Q', match1
);
3590 addParseToken('Q', function (input
, array
) {
3591 array
[MONTH
] = (toInt(input
) - 1) * 3;
3596 function getSetQuarter (input
) {
3597 return input
== null ? Math
.ceil((this.month() + 1) / 3) : this.month((input
- 1) * 3 + this.month() % 3);
3602 addFormatToken('D', ['DD', 2], 'Do', 'date');
3606 addUnitAlias('date', 'D');
3609 addUnitPriority('date', 9);
3613 addRegexToken('D', match1to2
);
3614 addRegexToken('DD', match1to2
, match2
);
3615 addRegexToken('Do', function (isStrict
, locale
) {
3616 // TODO: Remove "ordinalParse" fallback in next major release.
3618 (locale
._dayOfMonthOrdinalParse
|| locale
._ordinalParse
) :
3619 locale
._dayOfMonthOrdinalParseLenient
;
3622 addParseToken(['D', 'DD'], DATE
);
3623 addParseToken('Do', function (input
, array
) {
3624 array
[DATE
] = toInt(input
.match(match1to2
)[0], 10);
3629 var getSetDayOfMonth
= makeGetSet('Date', true);
3633 addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
3637 addUnitAlias('dayOfYear', 'DDD');
3640 addUnitPriority('dayOfYear', 4);
3644 addRegexToken('DDD', match1to3
);
3645 addRegexToken('DDDD', match3
);
3646 addParseToken(['DDD', 'DDDD'], function (input
, array
, config
) {
3647 config
._dayOfYear
= toInt(input
);
3654 function getSetDayOfYear (input
) {
3655 var dayOfYear
= Math
.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5
) + 1;
3656 return input
== null ? dayOfYear
: this.add((input
- dayOfYear
), 'd');
3661 addFormatToken('m', ['mm', 2], 0, 'minute');
3665 addUnitAlias('minute', 'm');
3669 addUnitPriority('minute', 14);
3673 addRegexToken('m', match1to2
);
3674 addRegexToken('mm', match1to2
, match2
);
3675 addParseToken(['m', 'mm'], MINUTE
);
3679 var getSetMinute
= makeGetSet('Minutes', false);
3683 addFormatToken('s', ['ss', 2], 0, 'second');
3687 addUnitAlias('second', 's');
3691 addUnitPriority('second', 15);
3695 addRegexToken('s', match1to2
);
3696 addRegexToken('ss', match1to2
, match2
);
3697 addParseToken(['s', 'ss'], SECOND
);
3701 var getSetSecond
= makeGetSet('Seconds', false);
3705 addFormatToken('S', 0, 0, function () {
3706 return ~~(this.millisecond() / 100);
3709 addFormatToken(0, ['SS', 2], 0, function () {
3710 return ~~(this.millisecond() / 10);
3713 addFormatToken(0, ['SSS', 3], 0, 'millisecond');
3714 addFormatToken(0, ['SSSS', 4], 0, function () {
3715 return this.millisecond() * 10;
3717 addFormatToken(0, ['SSSSS', 5], 0, function () {
3718 return this.millisecond() * 100;
3720 addFormatToken(0, ['SSSSSS', 6], 0, function () {
3721 return this.millisecond() * 1000;
3723 addFormatToken(0, ['SSSSSSS', 7], 0, function () {
3724 return this.millisecond() * 10000;
3726 addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
3727 return this.millisecond() * 100000;
3729 addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
3730 return this.millisecond() * 1000000;
3736 addUnitAlias('millisecond', 'ms');
3740 addUnitPriority('millisecond', 16);
3744 addRegexToken('S', match1to3
, match1
);
3745 addRegexToken('SS', match1to3
, match2
);
3746 addRegexToken('SSS', match1to3
, match3
);
3749 for (token
= 'SSSS'; token
.length
<= 9; token
+= 'S') {
3750 addRegexToken(token
, matchUnsigned
);
3753 function parseMs(input
, array
) {
3754 array
[MILLISECOND
] = toInt(('0.' + input
) * 1000);
3757 for (token
= 'S'; token
.length
<= 9; token
+= 'S') {
3758 addParseToken(token
, parseMs
);
3762 var getSetMillisecond
= makeGetSet('Milliseconds', false);
3766 addFormatToken('z', 0, 0, 'zoneAbbr');
3767 addFormatToken('zz', 0, 0, 'zoneName');
3771 function getZoneAbbr () {
3772 return this._isUTC
? 'UTC' : '';
3775 function getZoneName () {
3776 return this._isUTC
? 'Coordinated Universal Time' : '';
3779 var proto
= Moment
.prototype;
3782 proto
.calendar
= calendar
$1;
3783 proto
.clone
= clone
;
3785 proto
.endOf
= endOf
;
3786 proto
.format
= format
;
3788 proto
.fromNow
= fromNow
;
3790 proto
.toNow
= toNow
;
3791 proto
.get = stringGet
;
3792 proto
.invalidAt
= invalidAt
;
3793 proto
.isAfter
= isAfter
;
3794 proto
.isBefore
= isBefore
;
3795 proto
.isBetween
= isBetween
;
3796 proto
.isSame
= isSame
;
3797 proto
.isSameOrAfter
= isSameOrAfter
;
3798 proto
.isSameOrBefore
= isSameOrBefore
;
3799 proto
.isValid
= isValid
$2;
3801 proto
.locale
= locale
;
3802 proto
.localeData
= localeData
;
3803 proto
.max
= prototypeMax
;
3804 proto
.min
= prototypeMin
;
3805 proto
.parsingFlags
= parsingFlags
;
3806 proto
.set = stringSet
;
3807 proto
.startOf
= startOf
;
3808 proto
.subtract
= subtract
;
3809 proto
.toArray
= toArray
;
3810 proto
.toObject
= toObject
;
3811 proto
.toDate
= toDate
;
3812 proto
.toISOString
= toISOString
;
3813 proto
.inspect
= inspect
;
3814 proto
.toJSON
= toJSON
;
3815 proto
.toString
= toString
;
3817 proto
.valueOf
= valueOf
;
3818 proto
.creationData
= creationData
;
3821 proto
.year
= getSetYear
;
3822 proto
.isLeapYear
= getIsLeapYear
;
3825 proto
.weekYear
= getSetWeekYear
;
3826 proto
.isoWeekYear
= getSetISOWeekYear
;
3829 proto
.quarter
= proto
.quarters
= getSetQuarter
;
3832 proto
.month
= getSetMonth
;
3833 proto
.daysInMonth
= getDaysInMonth
;
3836 proto
.week
= proto
.weeks
= getSetWeek
;
3837 proto
.isoWeek
= proto
.isoWeeks
= getSetISOWeek
;
3838 proto
.weeksInYear
= getWeeksInYear
;
3839 proto
.isoWeeksInYear
= getISOWeeksInYear
;
3842 proto
.date
= getSetDayOfMonth
;
3843 proto
.day
= proto
.days
= getSetDayOfWeek
;
3844 proto
.weekday
= getSetLocaleDayOfWeek
;
3845 proto
.isoWeekday
= getSetISODayOfWeek
;
3846 proto
.dayOfYear
= getSetDayOfYear
;
3849 proto
.hour
= proto
.hours
= getSetHour
;
3852 proto
.minute
= proto
.minutes
= getSetMinute
;
3855 proto
.second
= proto
.seconds
= getSetSecond
;
3858 proto
.millisecond
= proto
.milliseconds
= getSetMillisecond
;
3861 proto
.utcOffset
= getSetOffset
;
3862 proto
.utc
= setOffsetToUTC
;
3863 proto
.local
= setOffsetToLocal
;
3864 proto
.parseZone
= setOffsetToParsedOffset
;
3865 proto
.hasAlignedHourOffset
= hasAlignedHourOffset
;
3866 proto
.isDST
= isDaylightSavingTime
;
3867 proto
.isLocal
= isLocal
;
3868 proto
.isUtcOffset
= isUtcOffset
;
3869 proto
.isUtc
= isUtc
;
3870 proto
.isUTC
= isUtc
;
3873 proto
.zoneAbbr
= getZoneAbbr
;
3874 proto
.zoneName
= getZoneName
;
3877 proto
.dates
= deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth
);
3878 proto
.months
= deprecate('months accessor is deprecated. Use month instead', getSetMonth
);
3879 proto
.years
= deprecate('years accessor is deprecated. Use year instead', getSetYear
);
3880 proto
.zone
= deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone
);
3881 proto
.isDSTShifted
= deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted
);
3883 function createUnix (input
) {
3884 return createLocal(input
* 1000);
3887 function createInZone () {
3888 return createLocal
.apply(null, arguments
).parseZone();
3891 function preParsePostFormat (string
) {
3895 var proto
$1 = Locale
.prototype;
3897 proto
$1.calendar
= calendar
;
3898 proto
$1.longDateFormat
= longDateFormat
;
3899 proto
$1.invalidDate
= invalidDate
;
3900 proto
$1.ordinal
= ordinal
;
3901 proto
$1.preparse
= preParsePostFormat
;
3902 proto
$1.postformat
= preParsePostFormat
;
3903 proto
$1.relativeTime
= relativeTime
;
3904 proto
$1.pastFuture
= pastFuture
;
3908 proto
$1.months
= localeMonths
;
3909 proto
$1.monthsShort
= localeMonthsShort
;
3910 proto
$1.monthsParse
= localeMonthsParse
;
3911 proto
$1.monthsRegex
= monthsRegex
;
3912 proto
$1.monthsShortRegex
= monthsShortRegex
;
3915 proto
$1.week
= localeWeek
;
3916 proto
$1.firstDayOfYear
= localeFirstDayOfYear
;
3917 proto
$1.firstDayOfWeek
= localeFirstDayOfWeek
;
3920 proto
$1.weekdays
= localeWeekdays
;
3921 proto
$1.weekdaysMin
= localeWeekdaysMin
;
3922 proto
$1.weekdaysShort
= localeWeekdaysShort
;
3923 proto
$1.weekdaysParse
= localeWeekdaysParse
;
3925 proto
$1.weekdaysRegex
= weekdaysRegex
;
3926 proto
$1.weekdaysShortRegex
= weekdaysShortRegex
;
3927 proto
$1.weekdaysMinRegex
= weekdaysMinRegex
;
3930 proto
$1.isPM
= localeIsPM
;
3931 proto
$1.meridiem
= localeMeridiem
;
3933 function get$1 (format
, index
, field
, setter
) {
3934 var locale
= getLocale();
3935 var utc
= createUTC().set(setter
, index
);
3936 return locale
[field
](utc
, format
);
3939 function listMonthsImpl (format
, index
, field
) {
3940 if (isNumber(format
)) {
3945 format
= format
|| '';
3947 if (index
!= null) {
3948 return get$1(format
, index
, field
, 'month');
3953 for (i
= 0; i
< 12; i
++) {
3954 out
[i
] = get$1(format
, i
, field
, 'month');
3967 function listWeekdaysImpl (localeSorted
, format
, index
, field
) {
3968 if (typeof localeSorted
=== 'boolean') {
3969 if (isNumber(format
)) {
3974 format
= format
|| '';
3976 format
= localeSorted
;
3978 localeSorted
= false;
3980 if (isNumber(format
)) {
3985 format
= format
|| '';
3988 var locale
= getLocale(),
3989 shift
= localeSorted
? locale
._week
.dow
: 0;
3991 if (index
!= null) {
3992 return get$1(format
, (index
+ shift
) % 7, field
, 'day');
3997 for (i
= 0; i
< 7; i
++) {
3998 out
[i
] = get$1(format
, (i
+ shift
) % 7, field
, 'day');
4003 function listMonths (format
, index
) {
4004 return listMonthsImpl(format
, index
, 'months');
4007 function listMonthsShort (format
, index
) {
4008 return listMonthsImpl(format
, index
, 'monthsShort');
4011 function listWeekdays (localeSorted
, format
, index
) {
4012 return listWeekdaysImpl(localeSorted
, format
, index
, 'weekdays');
4015 function listWeekdaysShort (localeSorted
, format
, index
) {
4016 return listWeekdaysImpl(localeSorted
, format
, index
, 'weekdaysShort');
4019 function listWeekdaysMin (localeSorted
, format
, index
) {
4020 return listWeekdaysImpl(localeSorted
, format
, index
, 'weekdaysMin');
4023 getSetGlobalLocale('en', {
4024 dayOfMonthOrdinalParse
: /\d{1,2}(th|st|nd|rd)/,
4025 ordinal : function (number
) {
4026 var b
= number
% 10,
4027 output
= (toInt(number
% 100 / 10) === 1) ? 'th' :
4030 (b
=== 3) ? 'rd' : 'th';
4031 return number
+ output
;
4035 // Side effect imports
4036 hooks
.lang
= deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale
);
4037 hooks
.langData
= deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale
);
4039 var mathAbs
= Math
.abs
;
4042 var data
= this._data
;
4044 this._milliseconds
= mathAbs(this._milliseconds
);
4045 this._days
= mathAbs(this._days
);
4046 this._months
= mathAbs(this._months
);
4048 data
.milliseconds
= mathAbs(data
.milliseconds
);
4049 data
.seconds
= mathAbs(data
.seconds
);
4050 data
.minutes
= mathAbs(data
.minutes
);
4051 data
.hours
= mathAbs(data
.hours
);
4052 data
.months
= mathAbs(data
.months
);
4053 data
.years
= mathAbs(data
.years
);
4058 function addSubtract
$1 (duration
, input
, value
, direction
) {
4059 var other
= createDuration(input
, value
);
4061 duration
._milliseconds
+= direction
* other
._milliseconds
;
4062 duration
._days
+= direction
* other
._days
;
4063 duration
._months
+= direction
* other
._months
;
4065 return duration
._bubble();
4068 // supports only 2.0-style add(1, 's') or add(duration)
4069 function add
$1 (input
, value
) {
4070 return addSubtract
$1(this, input
, value
, 1);
4073 // supports only 2.0-style subtract(1, 's') or subtract(duration)
4074 function subtract
$1 (input
, value
) {
4075 return addSubtract
$1(this, input
, value
, -1);
4078 function absCeil (number
) {
4080 return Math
.floor(number
);
4082 return Math
.ceil(number
);
4086 function bubble () {
4087 var milliseconds
= this._milliseconds
;
4088 var days
= this._days
;
4089 var months
= this._months
;
4090 var data
= this._data
;
4091 var seconds
, minutes
, hours
, years
, monthsFromDays
;
4093 // if we have a mix of positive and negative values, bubble down first
4094 // check: https://github.com/moment/moment/issues/2166
4095 if (!((milliseconds
>= 0 && days
>= 0 && months
>= 0) ||
4096 (milliseconds
<= 0 && days
<= 0 && months
<= 0))) {
4097 milliseconds
+= absCeil(monthsToDays(months
) + days
) * 864e5
;
4102 // The following code bubbles up values, see the tests for
4103 // examples of what that means.
4104 data
.milliseconds
= milliseconds
% 1000;
4106 seconds
= absFloor(milliseconds
/ 1000);
4107 data
.seconds
= seconds
% 60;
4109 minutes
= absFloor(seconds
/ 60);
4110 data
.minutes
= minutes
% 60;
4112 hours
= absFloor(minutes
/ 60);
4113 data
.hours
= hours
% 24;
4115 days
+= absFloor(hours
/ 24);
4117 // convert days to months
4118 monthsFromDays
= absFloor(daysToMonths(days
));
4119 months
+= monthsFromDays
;
4120 days
-= absCeil(monthsToDays(monthsFromDays
));
4122 // 12 months -> 1 year
4123 years
= absFloor(months
/ 12);
4127 data
.months
= months
;
4133 function daysToMonths (days
) {
4134 // 400 years have 146097 days (taking into account leap year rules)
4135 // 400 years have 12 months === 4800
4136 return days
* 4800 / 146097;
4139 function monthsToDays (months
) {
4140 // the reverse of daysToMonths
4141 return months
* 146097 / 4800;
4144 function as (units
) {
4145 if (!this.isValid()) {
4150 var milliseconds
= this._milliseconds
;
4152 units
= normalizeUnits(units
);
4154 if (units
=== 'month' || units
=== 'year') {
4155 days
= this._days
+ milliseconds
/ 864e5
;
4156 months
= this._months
+ daysToMonths(days
);
4157 return units
=== 'month' ? months
: months
/ 12;
4159 // handle milliseconds separately because of floating point math errors (issue #1867)
4160 days
= this._days
+ Math
.round(monthsToDays(this._months
));
4162 case 'week' : return days
/ 7 + milliseconds
/ 6048e5
;
4163 case 'day' : return days
+ milliseconds
/ 864e5
;
4164 case 'hour' : return days
* 24 + milliseconds
/ 36e5
;
4165 case 'minute' : return days
* 1440 + milliseconds
/ 6e4
;
4166 case 'second' : return days
* 86400 + milliseconds
/ 1000;
4167 // Math.floor prevents floating point math errors here
4168 case 'millisecond': return Math
.floor(days
* 864e5
) + milliseconds
;
4169 default: throw new Error('Unknown unit ' + units
);
4174 // TODO: Use this.as('ms')?
4175 function valueOf
$1 () {
4176 if (!this.isValid()) {
4180 this._milliseconds
+
4181 this._days
* 864e5
+
4182 (this._months
% 12) * 2592e6
+
4183 toInt(this._months
/ 12) * 31536e6
4187 function makeAs (alias
) {
4188 return function () {
4189 return this.as(alias
);
4193 var asMilliseconds
= makeAs('ms');
4194 var asSeconds
= makeAs('s');
4195 var asMinutes
= makeAs('m');
4196 var asHours
= makeAs('h');
4197 var asDays
= makeAs('d');
4198 var asWeeks
= makeAs('w');
4199 var asMonths
= makeAs('M');
4200 var asYears
= makeAs('y');
4202 function get$2 (units
) {
4203 units
= normalizeUnits(units
);
4204 return this.isValid() ? this[units
+ 's']() : NaN
;
4207 function makeGetter(name
) {
4208 return function () {
4209 return this.isValid() ? this._data
[name
] : NaN
;
4213 var milliseconds
= makeGetter('milliseconds');
4214 var seconds
= makeGetter('seconds');
4215 var minutes
= makeGetter('minutes');
4216 var hours
= makeGetter('hours');
4217 var days
= makeGetter('days');
4218 var months
= makeGetter('months');
4219 var years
= makeGetter('years');
4222 return absFloor(this.days() / 7);
4225 var round
= Math
.round
;
4227 ss
: 44, // a few seconds to seconds
4228 s
: 45, // seconds to minute
4229 m
: 45, // minutes to hour
4230 h
: 22, // hours to day
4231 d
: 26, // days to month
4232 M
: 11 // months to year
4235 // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
4236 function substituteTimeAgo(string
, number
, withoutSuffix
, isFuture
, locale
) {
4237 return locale
.relativeTime(number
|| 1, !!withoutSuffix
, string
, isFuture
);
4240 function relativeTime
$1 (posNegDuration
, withoutSuffix
, locale
) {
4241 var duration
= createDuration(posNegDuration
).abs();
4242 var seconds
= round(duration
.as('s'));
4243 var minutes
= round(duration
.as('m'));
4244 var hours
= round(duration
.as('h'));
4245 var days
= round(duration
.as('d'));
4246 var months
= round(duration
.as('M'));
4247 var years
= round(duration
.as('y'));
4249 var a
= seconds
<= thresholds
.ss
&& ['s', seconds
] ||
4250 seconds
< thresholds
.s
&& ['ss', seconds
] ||
4251 minutes
<= 1 && ['m'] ||
4252 minutes
< thresholds
.m
&& ['mm', minutes
] ||
4253 hours
<= 1 && ['h'] ||
4254 hours
< thresholds
.h
&& ['hh', hours
] ||
4255 days
<= 1 && ['d'] ||
4256 days
< thresholds
.d
&& ['dd', days
] ||
4257 months
<= 1 && ['M'] ||
4258 months
< thresholds
.M
&& ['MM', months
] ||
4259 years
<= 1 && ['y'] || ['yy', years
];
4261 a
[2] = withoutSuffix
;
4262 a
[3] = +posNegDuration
> 0;
4264 return substituteTimeAgo
.apply(null, a
);
4267 // This function allows you to set the rounding function for relative time strings
4268 function getSetRelativeTimeRounding (roundingFunction
) {
4269 if (roundingFunction
=== undefined) {
4272 if (typeof(roundingFunction
) === 'function') {
4273 round
= roundingFunction
;
4279 // This function allows you to set a threshold for relative time strings
4280 function getSetRelativeTimeThreshold (threshold
, limit
) {
4281 if (thresholds
[threshold
] === undefined) {
4284 if (limit
=== undefined) {
4285 return thresholds
[threshold
];
4287 thresholds
[threshold
] = limit
;
4288 if (threshold
=== 's') {
4289 thresholds
.ss
= limit
- 1;
4294 function humanize (withSuffix
) {
4295 if (!this.isValid()) {
4296 return this.localeData().invalidDate();
4299 var locale
= this.localeData();
4300 var output
= relativeTime
$1(this, !withSuffix
, locale
);
4303 output
= locale
.pastFuture(+this, output
);
4306 return locale
.postformat(output
);
4309 var abs
$1 = Math
.abs
;
4311 function toISOString
$1() {
4312 // for ISO strings we do not use the normal bubbling rules:
4313 // * milliseconds bubble up until they become hours
4314 // * days do not bubble at all
4315 // * months bubble up until they become years
4316 // This is because there is no context-free conversion between hours and days
4317 // (think of clock changes)
4318 // and also not between days and months (28-31 days per month)
4319 if (!this.isValid()) {
4320 return this.localeData().invalidDate();
4323 var seconds
= abs
$1(this._milliseconds
) / 1000;
4324 var days
= abs
$1(this._days
);
4325 var months
= abs
$1(this._months
);
4326 var minutes
, hours
, years
;
4328 // 3600 seconds -> 60 minutes -> 1 hour
4329 minutes
= absFloor(seconds
/ 60);
4330 hours
= absFloor(minutes
/ 60);
4334 // 12 months -> 1 year
4335 years
= absFloor(months
/ 12);
4339 // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
4346 var total
= this.asSeconds();
4349 // this is the same as C#'s (Noda) and python (isodate)...
4350 // but not other JS (goog.date)
4354 return (total
< 0 ? '-' : '') +
4356 (Y
? Y
+ 'Y' : '') +
4357 (M
? M
+ 'M' : '') +
4358 (D
? D
+ 'D' : '') +
4359 ((h
|| m
|| s
) ? 'T' : '') +
4360 (h
? h
+ 'H' : '') +
4361 (m
? m
+ 'M' : '') +
4365 var proto
$2 = Duration
.prototype;
4367 proto
$2.isValid
= isValid
$1;
4369 proto
$2.add
= add
$1;
4370 proto
$2.subtract
= subtract
$1;
4372 proto
$2.asMilliseconds
= asMilliseconds
;
4373 proto
$2.asSeconds
= asSeconds
;
4374 proto
$2.asMinutes
= asMinutes
;
4375 proto
$2.asHours
= asHours
;
4376 proto
$2.asDays
= asDays
;
4377 proto
$2.asWeeks
= asWeeks
;
4378 proto
$2.asMonths
= asMonths
;
4379 proto
$2.asYears
= asYears
;
4380 proto
$2.valueOf
= valueOf
$1;
4381 proto
$2._bubble
= bubble
;
4382 proto
$2.get = get$2;
4383 proto
$2.milliseconds
= milliseconds
;
4384 proto
$2.seconds
= seconds
;
4385 proto
$2.minutes
= minutes
;
4386 proto
$2.hours
= hours
;
4387 proto
$2.days
= days
;
4388 proto
$2.weeks
= weeks
;
4389 proto
$2.months
= months
;
4390 proto
$2.years
= years
;
4391 proto
$2.humanize
= humanize
;
4392 proto
$2.toISOString
= toISOString
$1;
4393 proto
$2.toString
= toISOString
$1;
4394 proto
$2.toJSON
= toISOString
$1;
4395 proto
$2.locale
= locale
;
4396 proto
$2.localeData
= localeData
;
4399 proto
$2.toIsoString
= deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString
$1);
4400 proto
$2.lang
= lang
;
4402 // Side effect imports
4406 addFormatToken('X', 0, 0, 'unix');
4407 addFormatToken('x', 0, 0, 'valueOf');
4411 addRegexToken('x', matchSigned
);
4412 addRegexToken('X', matchTimestamp
);
4413 addParseToken('X', function (input
, array
, config
) {
4414 config
._d
= new Date(parseFloat(input
, 10) * 1000);
4416 addParseToken('x', function (input
, array
, config
) {
4417 config
._d
= new Date(toInt(input
));
4420 // Side effect imports
4423 //! version : 2.18.1
4424 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
4428 hooks
.version
= '2.18.1';
4430 setHookCallback(createLocal
);
4436 hooks
.utc
= createUTC
;
4437 hooks
.unix
= createUnix
;
4438 hooks
.months
= listMonths
;
4439 hooks
.isDate
= isDate
;
4440 hooks
.locale
= getSetGlobalLocale
;
4441 hooks
.invalid
= createInvalid
;
4442 hooks
.duration
= createDuration
;
4443 hooks
.isMoment
= isMoment
;
4444 hooks
.weekdays
= listWeekdays
;
4445 hooks
.parseZone
= createInZone
;
4446 hooks
.localeData
= getLocale
;
4447 hooks
.isDuration
= isDuration
;
4448 hooks
.monthsShort
= listMonthsShort
;
4449 hooks
.weekdaysMin
= listWeekdaysMin
;
4450 hooks
.defineLocale
= defineLocale
;
4451 hooks
.updateLocale
= updateLocale
;
4452 hooks
.locales
= listLocales
;
4453 hooks
.weekdaysShort
= listWeekdaysShort
;
4454 hooks
.normalizeUnits
= normalizeUnits
;
4455 hooks
.relativeTimeRounding
= getSetRelativeTimeRounding
;
4456 hooks
.relativeTimeThreshold
= getSetRelativeTimeThreshold
;
4457 hooks
.calendarFormat
= getCalendarFormat
;
4458 hooks
.prototype = proto
;
4460 //! moment.js locale configuration
4461 //! locale : Afrikaans [af]
4462 //! author : Werner Mollentze : https://github.com/wernerm
4464 hooks
.defineLocale('af', {
4465 months
: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
4466 monthsShort
: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
4467 weekdays
: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
4468 weekdaysShort
: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
4469 weekdaysMin
: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
4470 meridiemParse
: /vm|nm/i,
4471 isPM : function (input
) {
4472 return /^nm$/i.test(input
);
4474 meridiem : function (hours
, minutes
, isLower
) {
4476 return isLower
? 'vm' : 'VM';
4478 return isLower
? 'nm' : 'NM';
4486 LLL
: 'D MMMM YYYY HH:mm',
4487 LLLL
: 'dddd, D MMMM YYYY HH:mm'
4490 sameDay
: '[Vandag om] LT',
4491 nextDay
: '[Môre om] LT',
4492 nextWeek
: 'dddd [om] LT',
4493 lastDay
: '[Gister om] LT',
4494 lastWeek
: '[Laas] dddd [om] LT',
4500 s
: '\'n paar sekondes',
4512 dayOfMonthOrdinalParse
: /\d{1,2}(ste|de)/,
4513 ordinal : function (number
) {
4514 return number
+ ((number
=== 1 || number
=== 8 || number
>= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
4517 dow
: 1, // Maandag is die eerste dag van die week.
4518 doy
: 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
4522 //! moment.js locale configuration
4523 //! locale : Arabic (Algeria) [ar-dz]
4524 //! author : Noureddine LOUAHEDJ : https://github.com/noureddineme
4526 hooks
.defineLocale('ar-dz', {
4527 months
: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
4528 monthsShort
: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
4529 weekdays
: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
4530 weekdaysShort
: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
4531 weekdaysMin
: 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
4532 weekdaysParseExact
: true,
4538 LLL
: 'D MMMM YYYY HH:mm',
4539 LLLL
: 'dddd D MMMM YYYY HH:mm'
4542 sameDay
: '[اليوم على الساعة] LT',
4543 nextDay
: '[غدا على الساعة] LT',
4544 nextWeek
: 'dddd [على الساعة] LT',
4545 lastDay
: '[أمس على الساعة] LT',
4546 lastWeek
: 'dddd [على الساعة] LT',
4565 dow
: 0, // Sunday is the first day of the week.
4566 doy
: 4 // The week that contains Jan 1st is the first week of the year.
4570 //! moment.js locale configuration
4571 //! locale : Arabic (Kuwait) [ar-kw]
4572 //! author : Nusret Parlak: https://github.com/nusretparlak
4574 hooks
.defineLocale('ar-kw', {
4575 months
: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
4576 monthsShort
: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
4577 weekdays
: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
4578 weekdaysShort
: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
4579 weekdaysMin
: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
4580 weekdaysParseExact
: true,
4586 LLL
: 'D MMMM YYYY HH:mm',
4587 LLLL
: 'dddd D MMMM YYYY HH:mm'
4590 sameDay
: '[اليوم على الساعة] LT',
4591 nextDay
: '[غدا على الساعة] LT',
4592 nextWeek
: 'dddd [على الساعة] LT',
4593 lastDay
: '[أمس على الساعة] LT',
4594 lastWeek
: 'dddd [على الساعة] LT',
4613 dow
: 0, // Sunday is the first day of the week.
4614 doy
: 12 // The week that contains Jan 1st is the first week of the year.
4618 //! moment.js locale configuration
4619 //! locale : Arabic (Lybia) [ar-ly]
4620 //! author : Ali Hmer: https://github.com/kikoanis
4634 var pluralForm = function (n
) {
4635 return n
=== 0 ? 0 : n
=== 1 ? 1 : n
=== 2 ? 2 : n
% 100 >= 3 && n
% 100 <= 10 ? 3 : n
% 100 >= 11 ? 4 : 5;
4638 s
: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
4639 m
: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
4640 h
: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
4641 d
: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
4642 M
: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
4643 y
: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
4645 var pluralize = function (u
) {
4646 return function (number
, withoutSuffix
, string
, isFuture
) {
4647 var f
= pluralForm(number
),
4648 str
= plurals
[u
][pluralForm(number
)];
4650 str
= str
[withoutSuffix
? 0 : 1];
4652 return str
.replace(/%d/i, number
);
4670 hooks
.defineLocale('ar-ly', {
4672 monthsShort
: months
$1,
4673 weekdays
: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
4674 weekdaysShort
: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
4675 weekdaysMin
: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
4676 weekdaysParseExact
: true,
4680 L
: 'D/\u200FM/\u200FYYYY',
4682 LLL
: 'D MMMM YYYY HH:mm',
4683 LLLL
: 'dddd D MMMM YYYY HH:mm'
4685 meridiemParse
: /ص|م/,
4686 isPM : function (input
) {
4687 return 'م' === input
;
4689 meridiem : function (hour
, minute
, isLower
) {
4697 sameDay
: '[اليوم عند الساعة] LT',
4698 nextDay
: '[غدًا عند الساعة] LT',
4699 nextWeek
: 'dddd [عند الساعة] LT',
4700 lastDay
: '[أمس عند الساعة] LT',
4701 lastWeek
: 'dddd [عند الساعة] LT',
4709 mm
: pluralize('m'),
4711 hh
: pluralize('h'),
4713 dd
: pluralize('d'),
4715 MM
: pluralize('M'),
4719 preparse: function (string
) {
4720 return string
.replace(/\u200f/g, '').replace(/،/g, ',');
4722 postformat: function (string
) {
4723 return string
.replace(/\d/g, function (match
) {
4724 return symbolMap
[match
];
4725 }).replace(/,/g
, '،');
4728 dow
: 6, // Saturday is the first day of the week.
4729 doy
: 12 // The week that contains Jan 1st is the first week of the year.
4733 //! moment.js locale configuration
4734 //! locale : Arabic (Morocco) [ar-ma]
4735 //! author : ElFadili Yassine : https://github.com/ElFadiliY
4736 //! author : Abdel Said : https://github.com/abdelsaid
4738 hooks
.defineLocale('ar-ma', {
4739 months
: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
4740 monthsShort
: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
4741 weekdays
: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
4742 weekdaysShort
: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
4743 weekdaysMin
: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
4744 weekdaysParseExact
: true,
4750 LLL
: 'D MMMM YYYY HH:mm',
4751 LLLL
: 'dddd D MMMM YYYY HH:mm'
4754 sameDay
: '[اليوم على الساعة] LT',
4755 nextDay
: '[غدا على الساعة] LT',
4756 nextWeek
: 'dddd [على الساعة] LT',
4757 lastDay
: '[أمس على الساعة] LT',
4758 lastWeek
: 'dddd [على الساعة] LT',
4777 dow
: 6, // Saturday is the first day of the week.
4778 doy
: 12 // The week that contains Jan 1st is the first week of the year.
4782 //! moment.js locale configuration
4783 //! locale : Arabic (Saudi Arabia) [ar-sa]
4784 //! author : Suhail Alkowaileet : https://github.com/xsoh
4811 hooks
.defineLocale('ar-sa', {
4812 months
: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
4813 monthsShort
: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
4814 weekdays
: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
4815 weekdaysShort
: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
4816 weekdaysMin
: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
4817 weekdaysParseExact
: true,
4823 LLL
: 'D MMMM YYYY HH:mm',
4824 LLLL
: 'dddd D MMMM YYYY HH:mm'
4826 meridiemParse
: /ص|م/,
4827 isPM : function (input
) {
4828 return 'م' === input
;
4830 meridiem : function (hour
, minute
, isLower
) {
4838 sameDay
: '[اليوم على الساعة] LT',
4839 nextDay
: '[غدا على الساعة] LT',
4840 nextWeek
: 'dddd [على الساعة] LT',
4841 lastDay
: '[أمس على الساعة] LT',
4842 lastWeek
: 'dddd [على الساعة] LT',
4860 preparse: function (string
) {
4861 return string
.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match
) {
4862 return numberMap
[match
];
4863 }).replace(/،/g, ',');
4865 postformat: function (string
) {
4866 return string
.replace(/\d/g, function (match
) {
4867 return symbolMap
$1[match
];
4868 }).replace(/,/g
, '،');
4871 dow
: 0, // Sunday is the first day of the week.
4872 doy
: 6 // The week that contains Jan 1st is the first week of the year.
4876 //! moment.js locale configuration
4877 //! locale : Arabic (Tunisia) [ar-tn]
4878 //! author : Nader Toukabri : https://github.com/naderio
4880 hooks
.defineLocale('ar-tn', {
4881 months
: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
4882 monthsShort
: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
4883 weekdays
: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
4884 weekdaysShort
: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
4885 weekdaysMin
: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
4886 weekdaysParseExact
: true,
4892 LLL
: 'D MMMM YYYY HH:mm',
4893 LLLL
: 'dddd D MMMM YYYY HH:mm'
4896 sameDay
: '[اليوم على الساعة] LT',
4897 nextDay
: '[غدا على الساعة] LT',
4898 nextWeek
: 'dddd [على الساعة] LT',
4899 lastDay
: '[أمس على الساعة] LT',
4900 lastWeek
: 'dddd [على الساعة] LT',
4919 dow
: 1, // Monday is the first day of the week.
4920 doy
: 4 // The week that contains Jan 4th is the first week of the year.
4924 //! moment.js locale configuration
4925 //! locale : Arabic [ar]
4926 //! author : Abdel Said: https://github.com/abdelsaid
4927 //! author : Ahmed Elkhatib
4928 //! author : forabi https://github.com/forabi
4954 var pluralForm
$1 = function (n
) {
4955 return n
=== 0 ? 0 : n
=== 1 ? 1 : n
=== 2 ? 2 : n
% 100 >= 3 && n
% 100 <= 10 ? 3 : n
% 100 >= 11 ? 4 : 5;
4958 s
: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
4959 m
: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
4960 h
: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
4961 d
: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
4962 M
: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
4963 y
: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
4965 var pluralize
$1 = function (u
) {
4966 return function (number
, withoutSuffix
, string
, isFuture
) {
4967 var f
= pluralForm
$1(number
),
4968 str
= plurals
$1[u
][pluralForm
$1(number
)];
4970 str
= str
[withoutSuffix
? 0 : 1];
4972 return str
.replace(/%d/i, number
);
4976 'كانون الثاني يناير',
4985 'تشرين الأول أكتوبر',
4986 'تشرين الثاني نوفمبر',
4987 'كانون الأول ديسمبر'
4990 hooks
.defineLocale('ar', {
4992 monthsShort
: months
$2,
4993 weekdays
: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
4994 weekdaysShort
: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
4995 weekdaysMin
: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
4996 weekdaysParseExact
: true,
5000 L
: 'D/\u200FM/\u200FYYYY',
5002 LLL
: 'D MMMM YYYY HH:mm',
5003 LLLL
: 'dddd D MMMM YYYY HH:mm'
5005 meridiemParse
: /ص|م/,
5006 isPM : function (input
) {
5007 return 'م' === input
;
5009 meridiem : function (hour
, minute
, isLower
) {
5017 sameDay
: '[اليوم عند الساعة] LT',
5018 nextDay
: '[غدًا عند الساعة] LT',
5019 nextWeek
: 'dddd [عند الساعة] LT',
5020 lastDay
: '[أمس عند الساعة] LT',
5021 lastWeek
: 'dddd [عند الساعة] LT',
5027 s
: pluralize
$1('s'),
5028 m
: pluralize
$1('m'),
5029 mm
: pluralize
$1('m'),
5030 h
: pluralize
$1('h'),
5031 hh
: pluralize
$1('h'),
5032 d
: pluralize
$1('d'),
5033 dd
: pluralize
$1('d'),
5034 M
: pluralize
$1('M'),
5035 MM
: pluralize
$1('M'),
5036 y
: pluralize
$1('y'),
5037 yy
: pluralize
$1('y')
5039 preparse: function (string
) {
5040 return string
.replace(/\u200f/g, '').replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match
) {
5041 return numberMap
$1[match
];
5042 }).replace(/،/g, ',');
5044 postformat: function (string
) {
5045 return string
.replace(/\d/g, function (match
) {
5046 return symbolMap
$2[match
];
5047 }).replace(/,/g
, '،');
5050 dow
: 6, // Saturday is the first day of the week.
5051 doy
: 12 // The week that contains Jan 1st is the first week of the year.
5055 //! moment.js locale configuration
5056 //! locale : Azerbaijani [az]
5057 //! author : topchiyev : https://github.com/topchiyev
5080 hooks
.defineLocale('az', {
5081 months
: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
5082 monthsShort
: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
5083 weekdays
: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
5084 weekdaysShort
: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
5085 weekdaysMin
: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
5086 weekdaysParseExact
: true,
5092 LLL
: 'D MMMM YYYY HH:mm',
5093 LLLL
: 'dddd, D MMMM YYYY HH:mm'
5096 sameDay
: '[bugün saat] LT',
5097 nextDay
: '[sabah saat] LT',
5098 nextWeek
: '[gələn həftə] dddd [saat] LT',
5099 lastDay
: '[dünən] LT',
5100 lastWeek
: '[keçən həftə] dddd [saat] LT',
5104 future
: '%s sonra',
5106 s
: 'birneçə saniyyə',
5118 meridiemParse
: /gecə|səhər|gündüz|axşam/,
5119 isPM : function (input
) {
5120 return /^(gündüz|axşam)$/.test(input
);
5122 meridiem : function (hour
, minute
, isLower
) {
5125 } else if (hour
< 12) {
5127 } else if (hour
< 17) {
5133 dayOfMonthOrdinalParse
: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
5134 ordinal : function (number
) {
5135 if (number
=== 0) { // special case for zero
5136 return number
+ '-ıncı';
5138 var a
= number
% 10,
5139 b
= number
% 100 - a
,
5140 c
= number
>= 100 ? 100 : null;
5141 return number
+ (suffixes
[a
] || suffixes
[b
] || suffixes
[c
]);
5144 dow
: 1, // Monday is the first day of the week.
5145 doy
: 7 // The week that contains Jan 1st is the first week of the year.
5149 //! moment.js locale configuration
5150 //! locale : Belarusian [be]
5151 //! author : Dmitry Demidov : https://github.com/demidov91
5152 //! author: Praleska: http://praleska.pro/
5153 //! Author : Menelion Elensúle : https://github.com/Oire
5155 function plural(word
, num
) {
5156 var forms
= word
.split('_');
5157 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]);
5159 function relativeTimeWithPlural(number
, withoutSuffix
, key
) {
5161 'mm': withoutSuffix
? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
5162 'hh': withoutSuffix
? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
5163 'dd': 'дзень_дні_дзён',
5164 'MM': 'месяц_месяцы_месяцаў',
5165 'yy': 'год_гады_гадоў'
5168 return withoutSuffix
? 'хвіліна' : 'хвіліну';
5170 else if (key
=== 'h') {
5171 return withoutSuffix
? 'гадзіна' : 'гадзіну';
5174 return number
+ ' ' + plural(format
[key
], +number
);
5178 hooks
.defineLocale('be', {
5180 format
: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
5181 standalone
: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
5183 monthsShort
: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
5185 format
: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
5186 standalone
: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
5187 isFormat
: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/
5189 weekdaysShort
: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
5190 weekdaysMin
: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
5195 LL
: 'D MMMM YYYY г.',
5196 LLL
: 'D MMMM YYYY г., HH:mm',
5197 LLLL
: 'dddd, D MMMM YYYY г., HH:mm'
5200 sameDay
: '[Сёння ў] LT',
5201 nextDay
: '[Заўтра ў] LT',
5202 lastDay
: '[Учора ў] LT',
5203 nextWeek: function () {
5204 return '[У] dddd [ў] LT';
5206 lastWeek: function () {
5207 switch (this.day()) {
5212 return '[У мінулую] dddd [ў] LT';
5216 return '[У мінулы] dddd [ў] LT';
5224 s
: 'некалькі секунд',
5225 m
: relativeTimeWithPlural
,
5226 mm
: relativeTimeWithPlural
,
5227 h
: relativeTimeWithPlural
,
5228 hh
: relativeTimeWithPlural
,
5230 dd
: relativeTimeWithPlural
,
5232 MM
: relativeTimeWithPlural
,
5234 yy
: relativeTimeWithPlural
5236 meridiemParse
: /ночы|раніцы|дня|вечара/,
5237 isPM : function (input
) {
5238 return /^(дня|вечара)$/.test(input
);
5240 meridiem : function (hour
, minute
, isLower
) {
5243 } else if (hour
< 12) {
5245 } else if (hour
< 17) {
5251 dayOfMonthOrdinalParse
: /\d{1,2}-(і|ы|га)/,
5252 ordinal: function (number
, period
) {
5259 return (number
% 10 === 2 || number
% 10 === 3) && (number
% 100 !== 12 && number
% 100 !== 13) ? number
+ '-і' : number
+ '-ы';
5261 return number
+ '-га';
5267 dow
: 1, // Monday is the first day of the week.
5268 doy
: 7 // The week that contains Jan 1st is the first week of the year.
5272 //! moment.js locale configuration
5273 //! locale : Bulgarian [bg]
5274 //! author : Krasen Borisov : https://github.com/kraz
5276 hooks
.defineLocale('bg', {
5277 months
: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
5278 monthsShort
: 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
5279 weekdays
: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
5280 weekdaysShort
: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
5281 weekdaysMin
: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
5287 LLL
: 'D MMMM YYYY H:mm',
5288 LLLL
: 'dddd, D MMMM YYYY H:mm'
5291 sameDay
: '[Днес в] LT',
5292 nextDay
: '[Утре в] LT',
5293 nextWeek
: 'dddd [в] LT',
5294 lastDay
: '[Вчера в] LT',
5295 lastWeek : function () {
5296 switch (this.day()) {
5300 return '[В изминалата] dddd [в] LT';
5305 return '[В изминалия] dddd [в] LT';
5313 s
: 'няколко секунди',
5325 dayOfMonthOrdinalParse
: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
5326 ordinal : function (number
) {
5327 var lastDigit
= number
% 10,
5328 last2Digits
= number
% 100;
5330 return number
+ '-ев';
5331 } else if (last2Digits
=== 0) {
5332 return number
+ '-ен';
5333 } else if (last2Digits
> 10 && last2Digits
< 20) {
5334 return number
+ '-ти';
5335 } else if (lastDigit
=== 1) {
5336 return number
+ '-ви';
5337 } else if (lastDigit
=== 2) {
5338 return number
+ '-ри';
5339 } else if (lastDigit
=== 7 || lastDigit
=== 8) {
5340 return number
+ '-ми';
5342 return number
+ '-ти';
5346 dow
: 1, // Monday is the first day of the week.
5347 doy
: 7 // The week that contains Jan 1st is the first week of the year.
5351 //! moment.js locale configuration
5352 //! locale : Bengali [bn]
5353 //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
5380 hooks
.defineLocale('bn', {
5381 months
: 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
5382 monthsShort
: 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
5383 weekdays
: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
5384 weekdaysShort
: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
5385 weekdaysMin
: 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),
5388 LTS
: 'A h:mm:ss সময়',
5391 LLL
: 'D MMMM YYYY, A h:mm সময়',
5392 LLLL
: 'dddd, D MMMM YYYY, A h:mm সময়'
5395 sameDay
: '[আজ] LT',
5396 nextDay
: '[আগামীকাল] LT',
5397 nextWeek
: 'dddd, LT',
5398 lastDay
: '[গতকাল] LT',
5399 lastWeek
: '[গত] dddd, LT',
5417 preparse: function (string
) {
5418 return string
.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match
) {
5419 return numberMap
$2[match
];
5422 postformat: function (string
) {
5423 return string
.replace(/\d/g, function (match
) {
5424 return symbolMap
$3[match
];
5427 meridiemParse
: /রাত|সকাল|দুপুর|বিকাল|রাত/,
5428 meridiemHour : function (hour
, meridiem
) {
5432 if ((meridiem
=== 'রাত' && hour
>= 4) ||
5433 (meridiem
=== 'দুপুর' && hour
< 5) ||
5434 meridiem
=== 'বিকাল') {
5440 meridiem : function (hour
, minute
, isLower
) {
5443 } else if (hour
< 10) {
5445 } else if (hour
< 17) {
5447 } else if (hour
< 20) {
5454 dow
: 0, // Sunday is the first day of the week.
5455 doy
: 6 // The week that contains Jan 1st is the first week of the year.
5459 //! moment.js locale configuration
5460 //! locale : Tibetan [bo]
5461 //! author : Thupten N. Chakrishar : https://github.com/vajradog
5488 hooks
.defineLocale('bo', {
5489 months
: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
5490 monthsShort
: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
5491 weekdays
: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
5492 weekdaysShort
: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
5493 weekdaysMin
: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
5499 LLL
: 'D MMMM YYYY, A h:mm',
5500 LLLL
: 'dddd, D MMMM YYYY, A h:mm'
5503 sameDay
: '[དི་རིང] LT',
5504 nextDay
: '[སང་ཉིན] LT',
5505 nextWeek
: '[བདུན་ཕྲག་རྗེས་མ], LT',
5506 lastDay
: '[ཁ་སང] LT',
5507 lastWeek
: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
5525 preparse: function (string
) {
5526 return string
.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match
) {
5527 return numberMap
$3[match
];
5530 postformat: function (string
) {
5531 return string
.replace(/\d/g, function (match
) {
5532 return symbolMap
$4[match
];
5535 meridiemParse
: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
5536 meridiemHour : function (hour
, meridiem
) {
5540 if ((meridiem
=== 'མཚན་མོ' && hour
>= 4) ||
5541 (meridiem
=== 'ཉིན་གུང' && hour
< 5) ||
5542 meridiem
=== 'དགོང་དག') {
5548 meridiem : function (hour
, minute
, isLower
) {
5551 } else if (hour
< 10) {
5553 } else if (hour
< 17) {
5555 } else if (hour
< 20) {
5562 dow
: 0, // Sunday is the first day of the week.
5563 doy
: 6 // The week that contains Jan 1st is the first week of the year.
5567 //! moment.js locale configuration
5568 //! locale : Breton [br]
5569 //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
5571 function relativeTimeWithMutation(number
, withoutSuffix
, key
) {
5577 return number
+ ' ' + mutation(format
[key
], number
);
5579 function specialMutationForYears(number
) {
5580 switch (lastNumber(number
)) {
5586 return number
+ ' bloaz';
5588 return number
+ ' vloaz';
5591 function lastNumber(number
) {
5593 return lastNumber(number
% 10);
5597 function mutation(text
, number
) {
5599 return softMutation(text
);
5603 function softMutation(text
) {
5604 var mutationTable
= {
5609 if (mutationTable
[text
.charAt(0)] === undefined) {
5612 return mutationTable
[text
.charAt(0)] + text
.substring(1);
5615 hooks
.defineLocale('br', {
5616 months
: 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
5617 monthsShort
: 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
5618 weekdays
: 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
5619 weekdaysShort
: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
5620 weekdaysMin
: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
5621 weekdaysParseExact
: true,
5624 LTS
: 'h[e]mm:ss A',
5626 LL
: 'D [a viz] MMMM YYYY',
5627 LLL
: 'D [a viz] MMMM YYYY h[e]mm A',
5628 LLLL
: 'dddd, D [a viz] MMMM YYYY h[e]mm A'
5631 sameDay
: '[Hiziv da] LT',
5632 nextDay
: '[Warc\'hoazh da] LT',
5633 nextWeek
: 'dddd [da] LT',
5634 lastDay
: '[Dec\'h da] LT',
5635 lastWeek
: 'dddd [paset da] LT',
5639 future
: 'a-benn %s',
5641 s
: 'un nebeud segondennoù',
5643 mm
: relativeTimeWithMutation
,
5647 dd
: relativeTimeWithMutation
,
5649 MM
: relativeTimeWithMutation
,
5651 yy
: specialMutationForYears
5653 dayOfMonthOrdinalParse
: /\d{1,2}(añ|vet)/,
5654 ordinal : function (number
) {
5655 var output
= (number
=== 1) ? 'añ' : 'vet';
5656 return number
+ output
;
5659 dow
: 1, // Monday is the first day of the week.
5660 doy
: 4 // The week that contains Jan 4th is the first week of the year.
5664 //! moment.js locale configuration
5665 //! locale : Bosnian [bs]
5666 //! author : Nedim Cholich : https://github.com/frontyard
5667 //! based on (hr) translation by Bojan Marković
5669 function translate(number
, withoutSuffix
, key
) {
5670 var result
= number
+ ' ';
5673 return withoutSuffix
? 'jedna minuta' : 'jedne minute';
5677 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
5684 return withoutSuffix
? 'jedan sat' : 'jednog sata';
5688 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
5704 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
5705 result
+= 'mjeseca';
5707 result
+= 'mjeseci';
5713 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
5722 hooks
.defineLocale('bs', {
5723 months
: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
5724 monthsShort
: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
5725 monthsParseExact
: true,
5726 weekdays
: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
5727 weekdaysShort
: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
5728 weekdaysMin
: 'ne_po_ut_sr_če_pe_su'.split('_'),
5729 weekdaysParseExact
: true,
5734 LL
: 'D. MMMM YYYY',
5735 LLL
: 'D. MMMM YYYY H:mm',
5736 LLLL
: 'dddd, D. MMMM YYYY H:mm'
5739 sameDay
: '[danas u] LT',
5740 nextDay
: '[sutra u] LT',
5741 nextWeek : function () {
5742 switch (this.day()) {
5744 return '[u] [nedjelju] [u] LT';
5746 return '[u] [srijedu] [u] LT';
5748 return '[u] [subotu] [u] LT';
5753 return '[u] dddd [u] LT';
5756 lastDay
: '[jučer u] LT',
5757 lastWeek : function () {
5758 switch (this.day()) {
5761 return '[prošlu] dddd [u] LT';
5763 return '[prošle] [subote] [u] LT';
5768 return '[prošli] dddd [u] LT';
5788 dayOfMonthOrdinalParse
: /\d{1,2}\./,
5791 dow
: 1, // Monday is the first day of the week.
5792 doy
: 7 // The week that contains Jan 1st is the first week of the year.
5796 //! moment.js locale configuration
5797 //! locale : Catalan [ca]
5798 //! author : Juan G. Hurtado : https://github.com/juanghurtado
5800 hooks
.defineLocale('ca', {
5802 standalone
: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
5803 format
: 'de gener_de febrer_de març_d\'abril_de maig_de juny_de juliol_d\'agost_de setembre_d\'octubre_de novembre_de desembre'.split('_'),
5804 isFormat
: /D[oD]?(\s)+MMMM/
5806 monthsShort
: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
5807 monthsParseExact
: true,
5808 weekdays
: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
5809 weekdaysShort
: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
5810 weekdaysMin
: 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'),
5811 weekdaysParseExact
: true,
5816 LL
: '[el] D MMMM [de] YYYY',
5818 LLL
: '[el] D MMMM [de] YYYY [a les] H:mm',
5819 lll
: 'D MMM YYYY, H:mm',
5820 LLLL
: '[el] dddd D MMMM [de] YYYY [a les] H:mm',
5821 llll
: 'ddd D MMM YYYY, H:mm'
5824 sameDay : function () {
5825 return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
5827 nextDay : function () {
5828 return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
5830 nextWeek : function () {
5831 return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
5833 lastDay : function () {
5834 return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
5836 lastWeek : function () {
5837 return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
5842 future
: 'd\'aquí %s',
5856 dayOfMonthOrdinalParse
: /\d{1,2}(r|n|t|è|a)/,
5857 ordinal : function (number
, period
) {
5858 var output
= (number
=== 1) ? 'r' :
5859 (number
=== 2) ? 'n' :
5860 (number
=== 3) ? 'r' :
5861 (number
=== 4) ? 't' : 'è';
5862 if (period
=== 'w' || period
=== 'W') {
5865 return number
+ output
;
5868 dow
: 1, // Monday is the first day of the week.
5869 doy
: 4 // The week that contains Jan 4th is the first week of the year.
5873 //! moment.js locale configuration
5874 //! locale : Czech [cs]
5875 //! author : petrbela : https://github.com/petrbela
5877 var months
$3 = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_');
5878 var monthsShort
= 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
5879 function plural
$1(n
) {
5880 return (n
> 1) && (n
< 5) && (~~(n
/ 10) !== 1);
5882 function translate
$1(number
, withoutSuffix
, key
, isFuture
) {
5883 var result
= number
+ ' ';
5885 case 's': // a few seconds / in a few seconds / a few seconds ago
5886 return (withoutSuffix
|| isFuture
) ? 'pár sekund' : 'pár sekundami';
5887 case 'm': // a minute / in a minute / a minute ago
5888 return withoutSuffix
? 'minuta' : (isFuture
? 'minutu' : 'minutou');
5889 case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
5890 if (withoutSuffix
|| isFuture
) {
5891 return result
+ (plural
$1(number
) ? 'minuty' : 'minut');
5893 return result
+ 'minutami';
5896 case 'h': // an hour / in an hour / an hour ago
5897 return withoutSuffix
? 'hodina' : (isFuture
? 'hodinu' : 'hodinou');
5898 case 'hh': // 9 hours / in 9 hours / 9 hours ago
5899 if (withoutSuffix
|| isFuture
) {
5900 return result
+ (plural
$1(number
) ? 'hodiny' : 'hodin');
5902 return result
+ 'hodinami';
5905 case 'd': // a day / in a day / a day ago
5906 return (withoutSuffix
|| isFuture
) ? 'den' : 'dnem';
5907 case 'dd': // 9 days / in 9 days / 9 days ago
5908 if (withoutSuffix
|| isFuture
) {
5909 return result
+ (plural
$1(number
) ? 'dny' : 'dní');
5911 return result
+ 'dny';
5914 case 'M': // a month / in a month / a month ago
5915 return (withoutSuffix
|| isFuture
) ? 'měsíc' : 'měsícem';
5916 case 'MM': // 9 months / in 9 months / 9 months ago
5917 if (withoutSuffix
|| isFuture
) {
5918 return result
+ (plural
$1(number
) ? 'měsíce' : 'měsíců');
5920 return result
+ 'měsíci';
5923 case 'y': // a year / in a year / a year ago
5924 return (withoutSuffix
|| isFuture
) ? 'rok' : 'rokem';
5925 case 'yy': // 9 years / in 9 years / 9 years ago
5926 if (withoutSuffix
|| isFuture
) {
5927 return result
+ (plural
$1(number
) ? 'roky' : 'let');
5929 return result
+ 'lety';
5935 hooks
.defineLocale('cs', {
5937 monthsShort
: monthsShort
,
5938 monthsParse
: (function (months
, monthsShort
) {
5939 var i
, _monthsParse
= [];
5940 for (i
= 0; i
< 12; i
++) {
5941 // use custom parser to solve problem with July (červenec)
5942 _monthsParse
[i
] = new RegExp('^' + months
[i
] + '$|^' + monthsShort
[i
] + '$', 'i');
5944 return _monthsParse
;
5945 }(months
$3, monthsShort
)),
5946 shortMonthsParse
: (function (monthsShort
) {
5947 var i
, _shortMonthsParse
= [];
5948 for (i
= 0; i
< 12; i
++) {
5949 _shortMonthsParse
[i
] = new RegExp('^' + monthsShort
[i
] + '$', 'i');
5951 return _shortMonthsParse
;
5953 longMonthsParse
: (function (months
) {
5954 var i
, _longMonthsParse
= [];
5955 for (i
= 0; i
< 12; i
++) {
5956 _longMonthsParse
[i
] = new RegExp('^' + months
[i
] + '$', 'i');
5958 return _longMonthsParse
;
5960 weekdays
: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
5961 weekdaysShort
: 'ne_po_út_st_čt_pá_so'.split('_'),
5962 weekdaysMin
: 'ne_po_út_st_čt_pá_so'.split('_'),
5967 LL
: 'D. MMMM YYYY',
5968 LLL
: 'D. MMMM YYYY H:mm',
5969 LLLL
: 'dddd D. MMMM YYYY H:mm',
5973 sameDay
: '[dnes v] LT',
5974 nextDay
: '[zítra v] LT',
5975 nextWeek: function () {
5976 switch (this.day()) {
5978 return '[v neděli v] LT';
5981 return '[v] dddd [v] LT';
5983 return '[ve středu v] LT';
5985 return '[ve čtvrtek v] LT';
5987 return '[v pátek v] LT';
5989 return '[v sobotu v] LT';
5992 lastDay
: '[včera v] LT',
5993 lastWeek: function () {
5994 switch (this.day()) {
5996 return '[minulou neděli v] LT';
5999 return '[minulé] dddd [v] LT';
6001 return '[minulou středu v] LT';
6004 return '[minulý] dddd [v] LT';
6006 return '[minulou sobotu v] LT';
6026 dayOfMonthOrdinalParse
: /\d{1,2}\./,
6029 dow
: 1, // Monday is the first day of the week.
6030 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6034 //! moment.js locale configuration
6035 //! locale : Chuvash [cv]
6036 //! author : Anatoly Mironov : https://github.com/mirontoli
6038 hooks
.defineLocale('cv', {
6039 months
: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
6040 monthsShort
: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
6041 weekdays
: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
6042 weekdaysShort
: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
6043 weekdaysMin
: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
6048 LL
: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
6049 LLL
: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
6050 LLLL
: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
6053 sameDay
: '[Паян] LT [сехетре]',
6054 nextDay
: '[Ыран] LT [сехетре]',
6055 lastDay
: '[Ӗнер] LT [сехетре]',
6056 nextWeek
: '[Ҫитес] dddd LT [сехетре]',
6057 lastWeek
: '[Иртнӗ] dddd LT [сехетре]',
6061 future : function (output
) {
6062 var affix
= /сехет$/i.exec(output
) ? 'рен' : /ҫул$/i.exec(output
) ? 'тан' : 'ран';
6063 return output
+ affix
;
6066 s
: 'пӗр-ик ҫеккунт',
6078 dayOfMonthOrdinalParse
: /\d{1,2}-мӗш/,
6081 dow
: 1, // Monday is the first day of the week.
6082 doy
: 7 // The week that contains Jan 1st is the first week of the year.
6086 //! moment.js locale configuration
6087 //! locale : Welsh [cy]
6088 //! author : Robert Allen : https://github.com/robgallen
6089 //! author : https://github.com/ryangreaves
6091 hooks
.defineLocale('cy', {
6092 months
: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
6093 monthsShort
: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
6094 weekdays
: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
6095 weekdaysShort
: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
6096 weekdaysMin
: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
6097 weekdaysParseExact
: true,
6098 // time formats are the same as en-gb
6104 LLL
: 'D MMMM YYYY HH:mm',
6105 LLLL
: 'dddd, D MMMM YYYY HH:mm'
6108 sameDay
: '[Heddiw am] LT',
6109 nextDay
: '[Yfory am] LT',
6110 nextWeek
: 'dddd [am] LT',
6111 lastDay
: '[Ddoe am] LT',
6112 lastWeek
: 'dddd [diwethaf am] LT',
6118 s
: 'ychydig eiliadau',
6130 dayOfMonthOrdinalParse
: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
6131 // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
6132 ordinal: function (number
) {
6136 '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
6137 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
6140 if (b
=== 40 || b
=== 50 || b
=== 60 || b
=== 80 || b
=== 100) {
6141 output
= 'fed'; // not 30ain, 70ain or 90ain
6148 return number
+ output
;
6151 dow
: 1, // Monday is the first day of the week.
6152 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6156 //! moment.js locale configuration
6157 //! locale : Danish [da]
6158 //! author : Ulrik Nielsen : https://github.com/mrbase
6160 hooks
.defineLocale('da', {
6161 months
: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
6162 monthsShort
: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
6163 weekdays
: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
6164 weekdaysShort
: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
6165 weekdaysMin
: 'sø_ma_ti_on_to_fr_lø'.split('_'),
6170 LL
: 'D. MMMM YYYY',
6171 LLL
: 'D. MMMM YYYY HH:mm',
6172 LLLL
: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
6175 sameDay
: '[i dag kl.] LT',
6176 nextDay
: '[i morgen kl.] LT',
6177 nextWeek
: 'på dddd [kl.] LT',
6178 lastDay
: '[i går kl.] LT',
6179 lastWeek
: '[i] dddd[s kl.] LT',
6197 dayOfMonthOrdinalParse
: /\d{1,2}\./,
6200 dow
: 1, // Monday is the first day of the week.
6201 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6205 //! moment.js locale configuration
6206 //! locale : German (Austria) [de-at]
6207 //! author : lluchs : https://github.com/lluchs
6208 //! author: Menelion Elensúle: https://github.com/Oire
6209 //! author : Martin Groller : https://github.com/MadMG
6210 //! author : Mikolaj Dadela : https://github.com/mik01aj
6212 function processRelativeTime(number
, withoutSuffix
, key
, isFuture
) {
6214 'm': ['eine Minute', 'einer Minute'],
6215 'h': ['eine Stunde', 'einer Stunde'],
6216 'd': ['ein Tag', 'einem Tag'],
6217 'dd': [number
+ ' Tage', number
+ ' Tagen'],
6218 'M': ['ein Monat', 'einem Monat'],
6219 'MM': [number
+ ' Monate', number
+ ' Monaten'],
6220 'y': ['ein Jahr', 'einem Jahr'],
6221 'yy': [number
+ ' Jahre', number
+ ' Jahren']
6223 return withoutSuffix
? format
[key
][0] : format
[key
][1];
6226 hooks
.defineLocale('de-at', {
6227 months
: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
6228 monthsShort
: 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
6229 monthsParseExact
: true,
6230 weekdays
: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
6231 weekdaysShort
: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
6232 weekdaysMin
: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
6233 weekdaysParseExact
: true,
6238 LL
: 'D. MMMM YYYY',
6239 LLL
: 'D. MMMM YYYY HH:mm',
6240 LLLL
: 'dddd, D. MMMM YYYY HH:mm'
6243 sameDay
: '[heute um] LT [Uhr]',
6245 nextDay
: '[morgen um] LT [Uhr]',
6246 nextWeek
: 'dddd [um] LT [Uhr]',
6247 lastDay
: '[gestern um] LT [Uhr]',
6248 lastWeek
: '[letzten] dddd [um] LT [Uhr]'
6253 s
: 'ein paar Sekunden',
6254 m
: processRelativeTime
,
6256 h
: processRelativeTime
,
6258 d
: processRelativeTime
,
6259 dd
: processRelativeTime
,
6260 M
: processRelativeTime
,
6261 MM
: processRelativeTime
,
6262 y
: processRelativeTime
,
6263 yy
: processRelativeTime
6265 dayOfMonthOrdinalParse
: /\d{1,2}\./,
6268 dow
: 1, // Monday is the first day of the week.
6269 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6273 //! moment.js locale configuration
6274 //! locale : German (Switzerland) [de-ch]
6275 //! author : sschueller : https://github.com/sschueller
6277 // based on: https://www.bk.admin.ch/dokumentation/sprachen/04915/05016/index.html?lang=de#
6279 function processRelativeTime
$1(number
, withoutSuffix
, key
, isFuture
) {
6281 'm': ['eine Minute', 'einer Minute'],
6282 'h': ['eine Stunde', 'einer Stunde'],
6283 'd': ['ein Tag', 'einem Tag'],
6284 'dd': [number
+ ' Tage', number
+ ' Tagen'],
6285 'M': ['ein Monat', 'einem Monat'],
6286 'MM': [number
+ ' Monate', number
+ ' Monaten'],
6287 'y': ['ein Jahr', 'einem Jahr'],
6288 'yy': [number
+ ' Jahre', number
+ ' Jahren']
6290 return withoutSuffix
? format
[key
][0] : format
[key
][1];
6293 hooks
.defineLocale('de-ch', {
6294 months
: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
6295 monthsShort
: 'Jan._Febr._März_April_Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.'.split('_'),
6296 monthsParseExact
: true,
6297 weekdays
: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
6298 weekdaysShort
: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
6299 weekdaysMin
: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
6300 weekdaysParseExact
: true,
6305 LL
: 'D. MMMM YYYY',
6306 LLL
: 'D. MMMM YYYY HH.mm',
6307 LLLL
: 'dddd, D. MMMM YYYY HH.mm'
6310 sameDay
: '[heute um] LT [Uhr]',
6312 nextDay
: '[morgen um] LT [Uhr]',
6313 nextWeek
: 'dddd [um] LT [Uhr]',
6314 lastDay
: '[gestern um] LT [Uhr]',
6315 lastWeek
: '[letzten] dddd [um] LT [Uhr]'
6320 s
: 'ein paar Sekunden',
6321 m
: processRelativeTime
$1,
6323 h
: processRelativeTime
$1,
6325 d
: processRelativeTime
$1,
6326 dd
: processRelativeTime
$1,
6327 M
: processRelativeTime
$1,
6328 MM
: processRelativeTime
$1,
6329 y
: processRelativeTime
$1,
6330 yy
: processRelativeTime
$1
6332 dayOfMonthOrdinalParse
: /\d{1,2}\./,
6335 dow
: 1, // Monday is the first day of the week.
6336 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6340 //! moment.js locale configuration
6341 //! locale : German [de]
6342 //! author : lluchs : https://github.com/lluchs
6343 //! author: Menelion Elensúle: https://github.com/Oire
6344 //! author : Mikolaj Dadela : https://github.com/mik01aj
6346 function processRelativeTime
$2(number
, withoutSuffix
, key
, isFuture
) {
6348 'm': ['eine Minute', 'einer Minute'],
6349 'h': ['eine Stunde', 'einer Stunde'],
6350 'd': ['ein Tag', 'einem Tag'],
6351 'dd': [number
+ ' Tage', number
+ ' Tagen'],
6352 'M': ['ein Monat', 'einem Monat'],
6353 'MM': [number
+ ' Monate', number
+ ' Monaten'],
6354 'y': ['ein Jahr', 'einem Jahr'],
6355 'yy': [number
+ ' Jahre', number
+ ' Jahren']
6357 return withoutSuffix
? format
[key
][0] : format
[key
][1];
6360 hooks
.defineLocale('de', {
6361 months
: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
6362 monthsShort
: 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
6363 monthsParseExact
: true,
6364 weekdays
: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
6365 weekdaysShort
: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
6366 weekdaysMin
: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
6367 weekdaysParseExact
: true,
6372 LL
: 'D. MMMM YYYY',
6373 LLL
: 'D. MMMM YYYY HH:mm',
6374 LLLL
: 'dddd, D. MMMM YYYY HH:mm'
6377 sameDay
: '[heute um] LT [Uhr]',
6379 nextDay
: '[morgen um] LT [Uhr]',
6380 nextWeek
: 'dddd [um] LT [Uhr]',
6381 lastDay
: '[gestern um] LT [Uhr]',
6382 lastWeek
: '[letzten] dddd [um] LT [Uhr]'
6387 s
: 'ein paar Sekunden',
6388 m
: processRelativeTime
$2,
6390 h
: processRelativeTime
$2,
6392 d
: processRelativeTime
$2,
6393 dd
: processRelativeTime
$2,
6394 M
: processRelativeTime
$2,
6395 MM
: processRelativeTime
$2,
6396 y
: processRelativeTime
$2,
6397 yy
: processRelativeTime
$2
6399 dayOfMonthOrdinalParse
: /\d{1,2}\./,
6402 dow
: 1, // Monday is the first day of the week.
6403 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6407 //! moment.js locale configuration
6408 //! locale : Maldivian [dv]
6409 //! author : Jawish Hameed : https://github.com/jawish
6435 hooks
.defineLocale('dv', {
6437 monthsShort
: months
$4,
6438 weekdays
: weekdays
,
6439 weekdaysShort
: weekdays
,
6440 weekdaysMin
: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
6447 LLL
: 'D MMMM YYYY HH:mm',
6448 LLLL
: 'dddd D MMMM YYYY HH:mm'
6450 meridiemParse
: /މކ|މފ/,
6451 isPM : function (input
) {
6452 return 'މފ' === input
;
6454 meridiem : function (hour
, minute
, isLower
) {
6462 sameDay
: '[މިއަދު] LT',
6463 nextDay
: '[މާދަމާ] LT',
6464 nextWeek
: 'dddd LT',
6465 lastDay
: '[އިއްޔެ] LT',
6466 lastWeek
: '[ފާއިތުވި] dddd LT',
6470 future
: 'ތެރޭގައި %s',
6472 s
: 'ސިކުންތުކޮޅެއް',
6484 preparse: function (string
) {
6485 return string
.replace(/،/g, ',');
6487 postformat: function (string
) {
6488 return string
.replace(/,/g
, '،');
6491 dow
: 7, // Sunday is the first day of the week.
6492 doy
: 12 // The week that contains Jan 1st is the first week of the year.
6496 //! moment.js locale configuration
6497 //! locale : Greek [el]
6498 //! author : Aggelos Karalias : https://github.com/mehiel
6500 hooks
.defineLocale('el', {
6501 monthsNominativeEl
: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
6502 monthsGenitiveEl
: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
6503 months : function (momentToFormat
, format
) {
6504 if (!momentToFormat
) {
6505 return this._monthsNominativeEl
;
6506 } else if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before
'MMMM'
6507 return this._monthsGenitiveEl
[momentToFormat
.month()];
6509 return this._monthsNominativeEl
[momentToFormat
.month()];
6512 monthsShort
: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
6513 weekdays
: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
6514 weekdaysShort
: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
6515 weekdaysMin
: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
6516 meridiem : function (hours
, minutes
, isLower
) {
6518 return isLower
? 'μμ' : 'ΜΜ';
6520 return isLower
? 'πμ' : 'ΠΜ';
6523 isPM : function (input
) {
6524 return ((input
+ '').toLowerCase()[0] === 'μ');
6526 meridiemParse
: /[ΠΜ]\.?Μ?\.?/i,
6532 LLL
: 'D MMMM YYYY h:mm A',
6533 LLLL
: 'dddd, D MMMM YYYY h:mm A'
6536 sameDay
: '[Σήμερα {}] LT',
6537 nextDay
: '[Αύριο {}] LT',
6538 nextWeek
: 'dddd [{}] LT',
6539 lastDay
: '[Χθες {}] LT',
6540 lastWeek : function () {
6541 switch (this.day()) {
6543 return '[το προηγούμενο] dddd [{}] LT';
6545 return '[την προηγούμενη] dddd [{}] LT';
6550 calendar : function (key
, mom
) {
6551 var output
= this._calendarEl
[key
],
6552 hours
= mom
&& mom
.hours();
6553 if (isFunction(output
)) {
6554 output
= output
.apply(mom
);
6556 return output
.replace('{}', (hours
% 12 === 1 ? 'στη' : 'στις'));
6561 s
: 'λίγα δευτερόλεπτα',
6573 dayOfMonthOrdinalParse
: /\d{1,2}η/,
6576 dow
: 1, // Monday is the first day of the week.
6577 doy
: 4 // The week that contains Jan 4st is the first week of the year.
6581 //! moment.js locale configuration
6582 //! locale : English (Australia) [en-au]
6583 //! author : Jared Morse : https://github.com/jarcoal
6585 hooks
.defineLocale('en-au', {
6586 months
: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
6587 monthsShort
: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
6588 weekdays
: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
6589 weekdaysShort
: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
6590 weekdaysMin
: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
6596 LLL
: 'D MMMM YYYY h:mm A',
6597 LLLL
: 'dddd, D MMMM YYYY h:mm A'
6600 sameDay
: '[Today at] LT',
6601 nextDay
: '[Tomorrow at] LT',
6602 nextWeek
: 'dddd [at] LT',
6603 lastDay
: '[Yesterday at] LT',
6604 lastWeek
: '[Last] dddd [at] LT',
6610 s
: 'a few seconds',
6622 dayOfMonthOrdinalParse
: /\d{1,2}(st|nd|rd|th)/,
6623 ordinal : function (number
) {
6624 var b
= number
% 10,
6625 output
= (~~(number
% 100 / 10) === 1) ? 'th' :
6628 (b
=== 3) ? 'rd' : 'th';
6629 return number
+ output
;
6632 dow
: 1, // Monday is the first day of the week.
6633 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6637 //! moment.js locale configuration
6638 //! locale : English (Canada) [en-ca]
6639 //! author : Jonathan Abourbih : https://github.com/jonbca
6641 hooks
.defineLocale('en-ca', {
6642 months
: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
6643 monthsShort
: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
6644 weekdays
: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
6645 weekdaysShort
: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
6646 weekdaysMin
: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
6651 LL
: 'MMMM D, YYYY',
6652 LLL
: 'MMMM D, YYYY h:mm A',
6653 LLLL
: 'dddd, MMMM D, YYYY h:mm A'
6656 sameDay
: '[Today at] LT',
6657 nextDay
: '[Tomorrow at] LT',
6658 nextWeek
: 'dddd [at] LT',
6659 lastDay
: '[Yesterday at] LT',
6660 lastWeek
: '[Last] dddd [at] LT',
6666 s
: 'a few seconds',
6678 dayOfMonthOrdinalParse
: /\d{1,2}(st|nd|rd|th)/,
6679 ordinal : function (number
) {
6680 var b
= number
% 10,
6681 output
= (~~(number
% 100 / 10) === 1) ? 'th' :
6684 (b
=== 3) ? 'rd' : 'th';
6685 return number
+ output
;
6689 //! moment.js locale configuration
6690 //! locale : English (United Kingdom) [en-gb]
6691 //! author : Chris Gedrim : https://github.com/chrisgedrim
6693 hooks
.defineLocale('en-gb', {
6694 months
: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
6695 monthsShort
: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
6696 weekdays
: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
6697 weekdaysShort
: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
6698 weekdaysMin
: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
6704 LLL
: 'D MMMM YYYY HH:mm',
6705 LLLL
: 'dddd, D MMMM YYYY HH:mm'
6708 sameDay
: '[Today at] LT',
6709 nextDay
: '[Tomorrow at] LT',
6710 nextWeek
: 'dddd [at] LT',
6711 lastDay
: '[Yesterday at] LT',
6712 lastWeek
: '[Last] dddd [at] LT',
6718 s
: 'a few seconds',
6730 dayOfMonthOrdinalParse
: /\d{1,2}(st|nd|rd|th)/,
6731 ordinal : function (number
) {
6732 var b
= number
% 10,
6733 output
= (~~(number
% 100 / 10) === 1) ? 'th' :
6736 (b
=== 3) ? 'rd' : 'th';
6737 return number
+ output
;
6740 dow
: 1, // Monday is the first day of the week.
6741 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6745 //! moment.js locale configuration
6746 //! locale : English (Ireland) [en-ie]
6747 //! author : Chris Cartlidge : https://github.com/chriscartlidge
6749 hooks
.defineLocale('en-ie', {
6750 months
: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
6751 monthsShort
: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
6752 weekdays
: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
6753 weekdaysShort
: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
6754 weekdaysMin
: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
6760 LLL
: 'D MMMM YYYY HH:mm',
6761 LLLL
: 'dddd D MMMM YYYY HH:mm'
6764 sameDay
: '[Today at] LT',
6765 nextDay
: '[Tomorrow at] LT',
6766 nextWeek
: 'dddd [at] LT',
6767 lastDay
: '[Yesterday at] LT',
6768 lastWeek
: '[Last] dddd [at] LT',
6774 s
: 'a few seconds',
6786 dayOfMonthOrdinalParse
: /\d{1,2}(st|nd|rd|th)/,
6787 ordinal : function (number
) {
6788 var b
= number
% 10,
6789 output
= (~~(number
% 100 / 10) === 1) ? 'th' :
6792 (b
=== 3) ? 'rd' : 'th';
6793 return number
+ output
;
6796 dow
: 1, // Monday is the first day of the week.
6797 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6801 //! moment.js locale configuration
6802 //! locale : English (New Zealand) [en-nz]
6803 //! author : Luke McGregor : https://github.com/lukemcgregor
6805 hooks
.defineLocale('en-nz', {
6806 months
: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
6807 monthsShort
: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
6808 weekdays
: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
6809 weekdaysShort
: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
6810 weekdaysMin
: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
6816 LLL
: 'D MMMM YYYY h:mm A',
6817 LLLL
: 'dddd, D MMMM YYYY h:mm A'
6820 sameDay
: '[Today at] LT',
6821 nextDay
: '[Tomorrow at] LT',
6822 nextWeek
: 'dddd [at] LT',
6823 lastDay
: '[Yesterday at] LT',
6824 lastWeek
: '[Last] dddd [at] LT',
6830 s
: 'a few seconds',
6842 dayOfMonthOrdinalParse
: /\d{1,2}(st|nd|rd|th)/,
6843 ordinal : function (number
) {
6844 var b
= number
% 10,
6845 output
= (~~(number
% 100 / 10) === 1) ? 'th' :
6848 (b
=== 3) ? 'rd' : 'th';
6849 return number
+ output
;
6852 dow
: 1, // Monday is the first day of the week.
6853 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6857 //! moment.js locale configuration
6858 //! locale : Esperanto [eo]
6859 //! author : Colin Dean : https://github.com/colindean
6860 //! author : Mia Nordentoft Imperatori : https://github.com/miestasmia
6861 //! comment : miestasmia corrected the translation by colindean
6863 hooks
.defineLocale('eo', {
6864 months
: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
6865 monthsShort
: 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
6866 weekdays
: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
6867 weekdaysShort
: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
6868 weekdaysMin
: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
6873 LL
: 'D[-a de] MMMM, YYYY',
6874 LLL
: 'D[-a de] MMMM, YYYY HH:mm',
6875 LLLL
: 'dddd, [la] D[-a de] MMMM, YYYY HH:mm'
6877 meridiemParse
: /[ap]\.t\.m/i,
6878 isPM: function (input
) {
6879 return input
.charAt(0).toLowerCase() === 'p';
6881 meridiem : function (hours
, minutes
, isLower
) {
6883 return isLower
? 'p.t.m.' : 'P.T.M.';
6885 return isLower
? 'a.t.m.' : 'A.T.M.';
6889 sameDay
: '[Hodiaŭ je] LT',
6890 nextDay
: '[Morgaŭ je] LT',
6891 nextWeek
: 'dddd [je] LT',
6892 lastDay
: '[Hieraŭ je] LT',
6893 lastWeek
: '[pasinta] dddd [je] LT',
6904 d
: 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
6911 dayOfMonthOrdinalParse
: /\d{1,2}a/,
6914 dow
: 1, // Monday is the first day of the week.
6915 doy
: 7 // The week that contains Jan 1st is the first week of the year.
6919 //! moment.js locale configuration
6920 //! locale : Spanish (Dominican Republic) [es-do]
6922 var monthsShortDot
= 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
6923 var monthsShort
$1 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
6925 hooks
.defineLocale('es-do', {
6926 months
: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
6927 monthsShort : function (m
, format
) {
6929 return monthsShortDot
;
6930 } else if (/-MMM-/.test(format
)) {
6931 return monthsShort
$1[m
.month()];
6933 return monthsShortDot
[m
.month()];
6936 monthsParseExact
: true,
6937 weekdays
: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
6938 weekdaysShort
: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
6939 weekdaysMin
: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
6940 weekdaysParseExact
: true,
6945 LL
: 'D [de] MMMM [de] YYYY',
6946 LLL
: 'D [de] MMMM [de] YYYY h:mm A',
6947 LLLL
: 'dddd, D [de] MMMM [de] YYYY h:mm A'
6950 sameDay : function () {
6951 return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
6953 nextDay : function () {
6954 return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
6956 nextWeek : function () {
6957 return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
6959 lastDay : function () {
6960 return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
6962 lastWeek : function () {
6963 return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
6970 s
: 'unos segundos',
6982 dayOfMonthOrdinalParse
: /\d{1,2}º/,
6985 dow
: 1, // Monday is the first day of the week.
6986 doy
: 4 // The week that contains Jan 4th is the first week of the year.
6990 //! moment.js locale configuration
6991 //! locale : Spanish [es]
6992 //! author : Julio Napurí : https://github.com/julionc
6994 var monthsShortDot
$1 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
6995 var monthsShort
$2 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
6997 hooks
.defineLocale('es', {
6998 months
: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
6999 monthsShort : function (m
, format
) {
7001 return monthsShortDot
$1;
7002 } else if (/-MMM-/.test(format
)) {
7003 return monthsShort
$2[m
.month()];
7005 return monthsShortDot
$1[m
.month()];
7008 monthsParseExact
: true,
7009 weekdays
: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
7010 weekdaysShort
: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
7011 weekdaysMin
: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
7012 weekdaysParseExact
: true,
7017 LL
: 'D [de] MMMM [de] YYYY',
7018 LLL
: 'D [de] MMMM [de] YYYY H:mm',
7019 LLLL
: 'dddd, D [de] MMMM [de] YYYY H:mm'
7022 sameDay : function () {
7023 return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
7025 nextDay : function () {
7026 return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
7028 nextWeek : function () {
7029 return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
7031 lastDay : function () {
7032 return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
7034 lastWeek : function () {
7035 return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
7042 s
: 'unos segundos',
7054 dayOfMonthOrdinalParse
: /\d{1,2}º/,
7057 dow
: 1, // Monday is the first day of the week.
7058 doy
: 4 // The week that contains Jan 4th is the first week of the year.
7062 //! moment.js locale configuration
7063 //! locale : Estonian [et]
7064 //! author : Henry Kehlmann : https://github.com/madhenry
7065 //! improvements : Illimar Tambek : https://github.com/ragulka
7067 function processRelativeTime
$3(number
, withoutSuffix
, key
, isFuture
) {
7069 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
7070 'm' : ['ühe minuti', 'üks minut'],
7071 'mm': [number
+ ' minuti', number
+ ' minutit'],
7072 'h' : ['ühe tunni', 'tund aega', 'üks tund'],
7073 'hh': [number
+ ' tunni', number
+ ' tundi'],
7074 'd' : ['ühe päeva', 'üks päev'],
7075 'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
7076 'MM': [number
+ ' kuu', number
+ ' kuud'],
7077 'y' : ['ühe aasta', 'aasta', 'üks aasta'],
7078 'yy': [number
+ ' aasta', number
+ ' aastat']
7080 if (withoutSuffix
) {
7081 return format
[key
][2] ? format
[key
][2] : format
[key
][1];
7083 return isFuture
? format
[key
][0] : format
[key
][1];
7086 hooks
.defineLocale('et', {
7087 months
: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
7088 monthsShort
: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
7089 weekdays
: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
7090 weekdaysShort
: 'P_E_T_K_N_R_L'.split('_'),
7091 weekdaysMin
: 'P_E_T_K_N_R_L'.split('_'),
7096 LL
: 'D. MMMM YYYY',
7097 LLL
: 'D. MMMM YYYY H:mm',
7098 LLLL
: 'dddd, D. MMMM YYYY H:mm'
7101 sameDay
: '[Täna,] LT',
7102 nextDay
: '[Homme,] LT',
7103 nextWeek
: '[Järgmine] dddd LT',
7104 lastDay
: '[Eile,] LT',
7105 lastWeek
: '[Eelmine] dddd LT',
7109 future
: '%s pärast',
7111 s
: processRelativeTime
$3,
7112 m
: processRelativeTime
$3,
7113 mm
: processRelativeTime
$3,
7114 h
: processRelativeTime
$3,
7115 hh
: processRelativeTime
$3,
7116 d
: processRelativeTime
$3,
7118 M
: processRelativeTime
$3,
7119 MM
: processRelativeTime
$3,
7120 y
: processRelativeTime
$3,
7121 yy
: processRelativeTime
$3
7123 dayOfMonthOrdinalParse
: /\d{1,2}\./,
7126 dow
: 1, // Monday is the first day of the week.
7127 doy
: 4 // The week that contains Jan 4th is the first week of the year.
7131 //! moment.js locale configuration
7132 //! locale : Basque [eu]
7133 //! author : Eneko Illarramendi : https://github.com/eillarra
7135 hooks
.defineLocale('eu', {
7136 months
: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
7137 monthsShort
: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
7138 monthsParseExact
: true,
7139 weekdays
: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
7140 weekdaysShort
: 'ig._al._ar._az._og._ol._lr.'.split('_'),
7141 weekdaysMin
: 'ig_al_ar_az_og_ol_lr'.split('_'),
7142 weekdaysParseExact
: true,
7147 LL
: 'YYYY[ko] MMMM[ren] D[a]',
7148 LLL
: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
7149 LLLL
: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
7151 ll
: 'YYYY[ko] MMM D[a]',
7152 lll
: 'YYYY[ko] MMM D[a] HH:mm',
7153 llll
: 'ddd, YYYY[ko] MMM D[a] HH:mm'
7156 sameDay
: '[gaur] LT[etan]',
7157 nextDay
: '[bihar] LT[etan]',
7158 nextWeek
: 'dddd LT[etan]',
7159 lastDay
: '[atzo] LT[etan]',
7160 lastWeek
: '[aurreko] dddd LT[etan]',
7164 future
: '%s barru',
7166 s
: 'segundo batzuk',
7178 dayOfMonthOrdinalParse
: /\d{1,2}\./,
7181 dow
: 1, // Monday is the first day of the week.
7182 doy
: 7 // The week that contains Jan 1st is the first week of the year.
7186 //! moment.js locale configuration
7187 //! locale : Persian [fa]
7188 //! author : Ebrahim Byagowi : https://github.com/ebraminio
7215 hooks
.defineLocale('fa', {
7216 months
: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
7217 monthsShort
: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
7218 weekdays
: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
7219 weekdaysShort
: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
7220 weekdaysMin
: 'ی_د_س_چ_پ_ج_ش'.split('_'),
7221 weekdaysParseExact
: true,
7227 LLL
: 'D MMMM YYYY HH:mm',
7228 LLLL
: 'dddd, D MMMM YYYY HH:mm'
7230 meridiemParse
: /قبل از ظهر|بعد از ظهر/,
7231 isPM: function (input
) {
7232 return /بعد از ظهر/.test(input
);
7234 meridiem : function (hour
, minute
, isLower
) {
7236 return 'قبل از ظهر';
7238 return 'بعد از ظهر';
7242 sameDay
: '[امروز ساعت] LT',
7243 nextDay
: '[فردا ساعت] LT',
7244 nextWeek
: 'dddd [ساعت] LT',
7245 lastDay
: '[دیروز ساعت] LT',
7246 lastWeek
: 'dddd [پیش] [ساعت] LT',
7264 preparse: function (string
) {
7265 return string
.replace(/[۰-۹]/g, function (match
) {
7266 return numberMap
$4[match
];
7267 }).replace(/،/g, ',');
7269 postformat: function (string
) {
7270 return string
.replace(/\d/g, function (match
) {
7271 return symbolMap
$5[match
];
7272 }).replace(/,/g
, '،');
7274 dayOfMonthOrdinalParse
: /\d{1,2}م/,
7277 dow
: 6, // Saturday is the first day of the week.
7278 doy
: 12 // The week that contains Jan 1st is the first week of the year.
7282 //! moment.js locale configuration
7283 //! locale : Finnish [fi]
7284 //! author : Tarmo Aidantausta : https://github.com/bleadof
7286 var numbersPast
= 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' ');
7287 var numbersFuture
= [
7288 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
7289 numbersPast
[7], numbersPast
[8], numbersPast
[9]
7291 function translate
$2(number
, withoutSuffix
, key
, isFuture
) {
7295 return isFuture
? 'muutaman sekunnin' : 'muutama sekunti';
7297 return isFuture
? 'minuutin' : 'minuutti';
7299 result
= isFuture
? 'minuutin' : 'minuuttia';
7302 return isFuture
? 'tunnin' : 'tunti';
7304 result
= isFuture
? 'tunnin' : 'tuntia';
7307 return isFuture
? 'päivän' : 'päivä';
7309 result
= isFuture
? 'päivän' : 'päivää';
7312 return isFuture
? 'kuukauden' : 'kuukausi';
7314 result
= isFuture
? 'kuukauden' : 'kuukautta';
7317 return isFuture
? 'vuoden' : 'vuosi';
7319 result
= isFuture
? 'vuoden' : 'vuotta';
7322 result
= verbalNumber(number
, isFuture
) + ' ' + result
;
7325 function verbalNumber(number
, isFuture
) {
7326 return number
< 10 ? (isFuture
? numbersFuture
[number
] : numbersPast
[number
]) : number
;
7329 hooks
.defineLocale('fi', {
7330 months
: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
7331 monthsShort
: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
7332 weekdays
: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
7333 weekdaysShort
: 'su_ma_ti_ke_to_pe_la'.split('_'),
7334 weekdaysMin
: 'su_ma_ti_ke_to_pe_la'.split('_'),
7339 LL
: 'Do MMMM[ta] YYYY',
7340 LLL
: 'Do MMMM[ta] YYYY, [klo] HH.mm',
7341 LLLL
: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
7344 lll
: 'Do MMM YYYY, [klo] HH.mm',
7345 llll
: 'ddd, Do MMM YYYY, [klo] HH.mm'
7348 sameDay
: '[tänään] [klo] LT',
7349 nextDay
: '[huomenna] [klo] LT',
7350 nextWeek
: 'dddd [klo] LT',
7351 lastDay
: '[eilen] [klo] LT',
7352 lastWeek
: '[viime] dddd[na] [klo] LT',
7356 future
: '%s päästä',
7370 dayOfMonthOrdinalParse
: /\d{1,2}\./,
7373 dow
: 1, // Monday is the first day of the week.
7374 doy
: 4 // The week that contains Jan 4th is the first week of the year.
7378 //! moment.js locale configuration
7379 //! locale : Faroese [fo]
7380 //! author : Ragnar Johannesen : https://github.com/ragnar123
7382 hooks
.defineLocale('fo', {
7383 months
: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
7384 monthsShort
: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
7385 weekdays
: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
7386 weekdaysShort
: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
7387 weekdaysMin
: 'su_má_tý_mi_hó_fr_le'.split('_'),
7393 LLL
: 'D MMMM YYYY HH:mm',
7394 LLLL
: 'dddd D. MMMM, YYYY HH:mm'
7397 sameDay
: '[Í dag kl.] LT',
7398 nextDay
: '[Í morgin kl.] LT',
7399 nextWeek
: 'dddd [kl.] LT',
7400 lastDay
: '[Í gjár kl.] LT',
7401 lastWeek
: '[síðstu] dddd [kl] LT',
7419 dayOfMonthOrdinalParse
: /\d{1,2}\./,
7422 dow
: 1, // Monday is the first day of the week.
7423 doy
: 4 // The week that contains Jan 4th is the first week of the year.
7427 //! moment.js locale configuration
7428 //! locale : French (Canada) [fr-ca]
7429 //! author : Jonathan Abourbih : https://github.com/jonbca
7431 hooks
.defineLocale('fr-ca', {
7432 months
: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
7433 monthsShort
: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
7434 monthsParseExact
: true,
7435 weekdays
: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
7436 weekdaysShort
: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
7437 weekdaysMin
: 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
7438 weekdaysParseExact
: true,
7444 LLL
: 'D MMMM YYYY HH:mm',
7445 LLLL
: 'dddd D MMMM YYYY HH:mm'
7448 sameDay
: '[Aujourd’hui à] LT',
7449 nextDay
: '[Demain à] LT',
7450 nextWeek
: 'dddd [à] LT',
7451 lastDay
: '[Hier à] LT',
7452 lastWeek
: 'dddd [dernier à] LT',
7458 s
: 'quelques secondes',
7470 dayOfMonthOrdinalParse
: /\d{1,2}(er|e)/,
7471 ordinal : function (number
, period
) {
7473 // Words with masculine grammatical gender: mois, trimestre, jour
7480 return number
+ (number
=== 1 ? 'er' : 'e');
7482 // Words with feminine grammatical gender: semaine
7485 return number
+ (number
=== 1 ? 're' : 'e');
7490 //! moment.js locale configuration
7491 //! locale : French (Switzerland) [fr-ch]
7492 //! author : Gaspard Bucher : https://github.com/gaspard
7494 hooks
.defineLocale('fr-ch', {
7495 months
: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
7496 monthsShort
: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
7497 monthsParseExact
: true,
7498 weekdays
: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
7499 weekdaysShort
: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
7500 weekdaysMin
: 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
7501 weekdaysParseExact
: true,
7507 LLL
: 'D MMMM YYYY HH:mm',
7508 LLLL
: 'dddd D MMMM YYYY HH:mm'
7511 sameDay
: '[Aujourd’hui à] LT',
7512 nextDay
: '[Demain à] LT',
7513 nextWeek
: 'dddd [à] LT',
7514 lastDay
: '[Hier à] LT',
7515 lastWeek
: 'dddd [dernier à] LT',
7521 s
: 'quelques secondes',
7533 dayOfMonthOrdinalParse
: /\d{1,2}(er|e)/,
7534 ordinal : function (number
, period
) {
7536 // Words with masculine grammatical gender: mois, trimestre, jour
7543 return number
+ (number
=== 1 ? 'er' : 'e');
7545 // Words with feminine grammatical gender: semaine
7548 return number
+ (number
=== 1 ? 're' : 'e');
7552 dow
: 1, // Monday is the first day of the week.
7553 doy
: 4 // The week that contains Jan 4th is the first week of the year.
7557 //! moment.js locale configuration
7558 //! locale : French [fr]
7559 //! author : John Fischer : https://github.com/jfroffice
7561 hooks
.defineLocale('fr', {
7562 months
: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
7563 monthsShort
: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
7564 monthsParseExact
: true,
7565 weekdays
: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
7566 weekdaysShort
: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
7567 weekdaysMin
: 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
7568 weekdaysParseExact
: true,
7574 LLL
: 'D MMMM YYYY HH:mm',
7575 LLLL
: 'dddd D MMMM YYYY HH:mm'
7578 sameDay
: '[Aujourd’hui à] LT',
7579 nextDay
: '[Demain à] LT',
7580 nextWeek
: 'dddd [à] LT',
7581 lastDay
: '[Hier à] LT',
7582 lastWeek
: 'dddd [dernier à] LT',
7588 s
: 'quelques secondes',
7600 dayOfMonthOrdinalParse
: /\d{1,2}(er|)/,
7601 ordinal : function (number
, period
) {
7603 // TODO: Return 'e' when day of month > 1. Move this case inside
7604 // block for masculine words below.
7605 // See https://github.com/moment/moment/issues/3375
7607 return number
+ (number
=== 1 ? 'er' : '');
7609 // Words with masculine grammatical gender: mois, trimestre, jour
7615 return number
+ (number
=== 1 ? 'er' : 'e');
7617 // Words with feminine grammatical gender: semaine
7620 return number
+ (number
=== 1 ? 're' : 'e');
7624 dow
: 1, // Monday is the first day of the week.
7625 doy
: 4 // The week that contains Jan 4th is the first week of the year.
7629 //! moment.js locale configuration
7630 //! locale : Frisian [fy]
7631 //! author : Robin van der Vliet : https://github.com/robin0van0der0v
7633 var monthsShortWithDots
= 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_');
7634 var monthsShortWithoutDots
= 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
7636 hooks
.defineLocale('fy', {
7637 months
: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
7638 monthsShort : function (m
, format
) {
7640 return monthsShortWithDots
;
7641 } else if (/-MMM-/.test(format
)) {
7642 return monthsShortWithoutDots
[m
.month()];
7644 return monthsShortWithDots
[m
.month()];
7647 monthsParseExact
: true,
7648 weekdays
: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
7649 weekdaysShort
: 'si._mo._ti._wo._to._fr._so.'.split('_'),
7650 weekdaysMin
: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
7651 weekdaysParseExact
: true,
7657 LLL
: 'D MMMM YYYY HH:mm',
7658 LLLL
: 'dddd D MMMM YYYY HH:mm'
7661 sameDay
: '[hjoed om] LT',
7662 nextDay
: '[moarn om] LT',
7663 nextWeek
: 'dddd [om] LT',
7664 lastDay
: '[juster om] LT',
7665 lastWeek
: '[ôfrûne] dddd [om] LT',
7671 s
: 'in pear sekonden',
7683 dayOfMonthOrdinalParse
: /\d{1,2}(ste|de)/,
7684 ordinal : function (number
) {
7685 return number
+ ((number
=== 1 || number
=== 8 || number
>= 20) ? 'ste' : 'de');
7688 dow
: 1, // Monday is the first day of the week.
7689 doy
: 4 // The week that contains Jan 4th is the first week of the year.
7693 //! moment.js locale configuration
7694 //! locale : Scottish Gaelic [gd]
7695 //! author : Jon Ashdown : https://github.com/jonashdown
7698 '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'
7701 var monthsShort
$3 = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
7703 var weekdays
$1 = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
7705 var weekdaysShort
= ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
7707 var weekdaysMin
= ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
7709 hooks
.defineLocale('gd', {
7711 monthsShort
: monthsShort
$3,
7712 monthsParseExact
: true,
7713 weekdays
: weekdays
$1,
7714 weekdaysShort
: weekdaysShort
,
7715 weekdaysMin
: weekdaysMin
,
7721 LLL
: 'D MMMM YYYY HH:mm',
7722 LLLL
: 'dddd, D MMMM YYYY HH:mm'
7725 sameDay
: '[An-diugh aig] LT',
7726 nextDay
: '[A-màireach aig] LT',
7727 nextWeek
: 'dddd [aig] LT',
7728 lastDay
: '[An-dè aig] LT',
7729 lastWeek
: 'dddd [seo chaidh] [aig] LT',
7733 future
: 'ann an %s',
7734 past
: 'bho chionn %s',
7735 s
: 'beagan diogan',
7737 mm
: '%d mionaidean',
7747 dayOfMonthOrdinalParse
: /\d{1,2}(d|na|mh)/,
7748 ordinal : function (number
) {
7749 var output
= number
=== 1 ? 'd' : number
% 10 === 2 ? 'na' : 'mh';
7750 return number
+ output
;
7753 dow
: 1, // Monday is the first day of the week.
7754 doy
: 4 // The week that contains Jan 4th is the first week of the year.
7758 //! moment.js locale configuration
7759 //! locale : Galician [gl]
7760 //! author : Juan G. Hurtado : https://github.com/juanghurtado
7762 hooks
.defineLocale('gl', {
7763 months
: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
7764 monthsShort
: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
7765 monthsParseExact
: true,
7766 weekdays
: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
7767 weekdaysShort
: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
7768 weekdaysMin
: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
7769 weekdaysParseExact
: true,
7774 LL
: 'D [de] MMMM [de] YYYY',
7775 LLL
: 'D [de] MMMM [de] YYYY H:mm',
7776 LLLL
: 'dddd, D [de] MMMM [de] YYYY H:mm'
7779 sameDay : function () {
7780 return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
7782 nextDay : function () {
7783 return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
7785 nextWeek : function () {
7786 return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
7788 lastDay : function () {
7789 return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
7791 lastWeek : function () {
7792 return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
7797 future : function (str
) {
7798 if (str
.indexOf('un') === 0) {
7816 dayOfMonthOrdinalParse
: /\d{1,2}º/,
7819 dow
: 1, // Monday is the first day of the week.
7820 doy
: 4 // The week that contains Jan 4th is the first week of the year.
7824 //! moment.js locale configuration
7825 //! locale : Konkani Latin script [gom-latn]
7826 //! author : The Discoverer : https://github.com/WikiDiscoverer
7828 function processRelativeTime
$4(number
, withoutSuffix
, key
, isFuture
) {
7830 's': ['thodde secondanim', 'thodde second'],
7831 'm': ['eka mintan', 'ek minute'],
7832 'mm': [number
+ ' mintanim', number
+ ' mintam'],
7833 'h': ['eka horan', 'ek hor'],
7834 'hh': [number
+ ' horanim', number
+ ' hor'],
7835 'd': ['eka disan', 'ek dis'],
7836 'dd': [number
+ ' disanim', number
+ ' dis'],
7837 'M': ['eka mhoinean', 'ek mhoino'],
7838 'MM': [number
+ ' mhoineanim', number
+ ' mhoine'],
7839 'y': ['eka vorsan', 'ek voros'],
7840 'yy': [number
+ ' vorsanim', number
+ ' vorsam']
7842 return withoutSuffix
? format
[key
][0] : format
[key
][1];
7845 hooks
.defineLocale('gom-latn', {
7846 months
: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
7847 monthsShort
: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
7848 monthsParseExact
: true,
7849 weekdays
: 'Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son\'var'.split('_'),
7850 weekdaysShort
: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
7851 weekdaysMin
: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
7852 weekdaysParseExact
: true,
7854 LT
: 'A h:mm [vazta]',
7855 LTS
: 'A h:mm:ss [vazta]',
7858 LLL
: 'D MMMM YYYY A h:mm [vazta]',
7859 LLLL
: 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]',
7860 llll
: 'ddd, D MMM YYYY, A h:mm [vazta]'
7863 sameDay
: '[Aiz] LT',
7864 nextDay
: '[Faleam] LT',
7865 nextWeek
: '[Ieta to] dddd[,] LT',
7866 lastDay
: '[Kal] LT',
7867 lastWeek
: '[Fatlo] dddd[,] LT',
7873 s
: processRelativeTime
$4,
7874 m
: processRelativeTime
$4,
7875 mm
: processRelativeTime
$4,
7876 h
: processRelativeTime
$4,
7877 hh
: processRelativeTime
$4,
7878 d
: processRelativeTime
$4,
7879 dd
: processRelativeTime
$4,
7880 M
: processRelativeTime
$4,
7881 MM
: processRelativeTime
$4,
7882 y
: processRelativeTime
$4,
7883 yy
: processRelativeTime
$4
7885 dayOfMonthOrdinalParse
: /\d{1,2}(er)/,
7886 ordinal : function (number
, period
) {
7888 // the ordinal 'er' only applies to day of the month
7890 return number
+ 'er';
7902 dow
: 1, // Monday is the first day of the week.
7903 doy
: 4 // The week that contains Jan 4th is the first week of the year.
7905 meridiemParse
: /rati|sokalli|donparam|sanje/,
7906 meridiemHour : function (hour
, meridiem
) {
7910 if (meridiem
=== 'rati') {
7911 return hour
< 4 ? hour
: hour
+ 12;
7912 } else if (meridiem
=== 'sokalli') {
7914 } else if (meridiem
=== 'donparam') {
7915 return hour
> 12 ? hour
: hour
+ 12;
7916 } else if (meridiem
=== 'sanje') {
7920 meridiem : function (hour
, minute
, isLower
) {
7923 } else if (hour
< 12) {
7925 } else if (hour
< 16) {
7927 } else if (hour
< 20) {
7935 //! moment.js locale configuration
7936 //! locale : Hebrew [he]
7937 //! author : Tomer Cohen : https://github.com/tomer
7938 //! author : Moshe Simantov : https://github.com/DevelopmentIL
7939 //! author : Tal Ater : https://github.com/TalAter
7941 hooks
.defineLocale('he', {
7942 months
: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
7943 monthsShort
: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
7944 weekdays
: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
7945 weekdaysShort
: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
7946 weekdaysMin
: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
7951 LL
: 'D [ב]MMMM YYYY',
7952 LLL
: 'D [ב]MMMM YYYY HH:mm',
7953 LLLL
: 'dddd, D [ב]MMMM YYYY HH:mm',
7956 lll
: 'D MMM YYYY HH:mm',
7957 llll
: 'ddd, D MMM YYYY HH:mm'
7960 sameDay
: '[היום ב־]LT',
7961 nextDay
: '[מחר ב־]LT',
7962 nextWeek
: 'dddd [בשעה] LT',
7963 lastDay
: '[אתמול ב־]LT',
7964 lastWeek
: '[ביום] dddd [האחרון בשעה] LT',
7974 hh : function (number
) {
7978 return number
+ ' שעות';
7981 dd : function (number
) {
7985 return number
+ ' ימים';
7988 MM : function (number
) {
7992 return number
+ ' חודשים';
7995 yy : function (number
) {
7998 } else if (number
% 10 === 0 && number
!== 10) {
7999 return number
+ ' שנה';
8001 return number
+ ' שנים';
8004 meridiemParse
: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
8005 isPM : function (input
) {
8006 return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input
);
8008 meridiem : function (hour
, minute
, isLower
) {
8010 return 'לפנות בוקר';
8011 } else if (hour
< 10) {
8013 } else if (hour
< 12) {
8014 return isLower
? 'לפנה"צ' : 'לפני הצהריים';
8015 } else if (hour
< 18) {
8016 return isLower
? 'אחה"צ' : 'אחרי הצהריים';
8023 //! moment.js locale configuration
8024 //! locale : Hindi [hi]
8025 //! author : Mayank Singhal : https://github.com/mayanksinghal
8052 hooks
.defineLocale('hi', {
8053 months
: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
8054 monthsShort
: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
8055 monthsParseExact
: true,
8056 weekdays
: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
8057 weekdaysShort
: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
8058 weekdaysMin
: 'र_सो_मं_बु_गु_शु_श'.split('_'),
8061 LTS
: 'A h:mm:ss बजे',
8064 LLL
: 'D MMMM YYYY, A h:mm बजे',
8065 LLLL
: 'dddd, D MMMM YYYY, A h:mm बजे'
8068 sameDay
: '[आज] LT',
8069 nextDay
: '[कल] LT',
8070 nextWeek
: 'dddd, LT',
8071 lastDay
: '[कल] LT',
8072 lastWeek
: '[पिछले] dddd, LT',
8090 preparse: function (string
) {
8091 return string
.replace(/[१२३४५६७८९०]/g, function (match
) {
8092 return numberMap
$5[match
];
8095 postformat: function (string
) {
8096 return string
.replace(/\d/g, function (match
) {
8097 return symbolMap
$6[match
];
8100 // Hindi notation for meridiems are quite fuzzy in practice. While there exists
8101 // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
8102 meridiemParse
: /रात|सुबह|दोपहर|शाम/,
8103 meridiemHour : function (hour
, meridiem
) {
8107 if (meridiem
=== 'रात') {
8108 return hour
< 4 ? hour
: hour
+ 12;
8109 } else if (meridiem
=== 'सुबह') {
8111 } else if (meridiem
=== 'दोपहर') {
8112 return hour
>= 10 ? hour
: hour
+ 12;
8113 } else if (meridiem
=== 'शाम') {
8117 meridiem : function (hour
, minute
, isLower
) {
8120 } else if (hour
< 10) {
8122 } else if (hour
< 17) {
8124 } else if (hour
< 20) {
8131 dow
: 0, // Sunday is the first day of the week.
8132 doy
: 6 // The week that contains Jan 1st is the first week of the year.
8136 //! moment.js locale configuration
8137 //! locale : Croatian [hr]
8138 //! author : Bojan Marković : https://github.com/bmarkovic
8140 function translate
$3(number
, withoutSuffix
, key
) {
8141 var result
= number
+ ' ';
8144 return withoutSuffix
? 'jedna minuta' : 'jedne minute';
8148 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
8155 return withoutSuffix
? 'jedan sat' : 'jednog sata';
8159 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
8175 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
8176 result
+= 'mjeseca';
8178 result
+= 'mjeseci';
8184 } else if (number
=== 2 || number
=== 3 || number
=== 4) {
8193 hooks
.defineLocale('hr', {
8195 format
: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
8196 standalone
: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
8198 monthsShort
: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
8199 monthsParseExact
: true,
8200 weekdays
: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
8201 weekdaysShort
: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
8202 weekdaysMin
: 'ne_po_ut_sr_če_pe_su'.split('_'),
8203 weekdaysParseExact
: true,
8208 LL
: 'D. MMMM YYYY',
8209 LLL
: 'D. MMMM YYYY H:mm',
8210 LLLL
: 'dddd, D. MMMM YYYY H:mm'
8213 sameDay
: '[danas u] LT',
8214 nextDay
: '[sutra u] LT',
8215 nextWeek : function () {
8216 switch (this.day()) {
8218 return '[u] [nedjelju] [u] LT';
8220 return '[u] [srijedu] [u] LT';
8222 return '[u] [subotu] [u] LT';
8227 return '[u] dddd [u] LT';
8230 lastDay
: '[jučer u] LT',
8231 lastWeek : function () {
8232 switch (this.day()) {
8235 return '[prošlu] dddd [u] LT';
8237 return '[prošle] [subote] [u] LT';
8242 return '[prošli] dddd [u] LT';
8262 dayOfMonthOrdinalParse
: /\d{1,2}\./,
8265 dow
: 1, // Monday is the first day of the week.
8266 doy
: 7 // The week that contains Jan 1st is the first week of the year.
8270 //! moment.js locale configuration
8271 //! locale : Hungarian [hu]
8272 //! author : Adam Brunner : https://github.com/adambrunner
8274 var weekEndings
= 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
8275 function translate
$4(number
, withoutSuffix
, key
, isFuture
) {
8280 return (isFuture
|| withoutSuffix
) ? 'néhány másodperc' : 'néhány másodperce';
8282 return 'egy' + (isFuture
|| withoutSuffix
? ' perc' : ' perce');
8284 return num
+ (isFuture
|| withoutSuffix
? ' perc' : ' perce');
8286 return 'egy' + (isFuture
|| withoutSuffix
? ' óra' : ' órája');
8288 return num
+ (isFuture
|| withoutSuffix
? ' óra' : ' órája');
8290 return 'egy' + (isFuture
|| withoutSuffix
? ' nap' : ' napja');
8292 return num
+ (isFuture
|| withoutSuffix
? ' nap' : ' napja');
8294 return 'egy' + (isFuture
|| withoutSuffix
? ' hónap' : ' hónapja');
8296 return num
+ (isFuture
|| withoutSuffix
? ' hónap' : ' hónapja');
8298 return 'egy' + (isFuture
|| withoutSuffix
? ' év' : ' éve');
8300 return num
+ (isFuture
|| withoutSuffix
? ' év' : ' éve');
8304 function week(isFuture
) {
8305 return (isFuture
? '' : '[múlt] ') + '[' + weekEndings
[this.day()] + '] LT[-kor]';
8308 hooks
.defineLocale('hu', {
8309 months
: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
8310 monthsShort
: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
8311 weekdays
: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
8312 weekdaysShort
: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
8313 weekdaysMin
: 'v_h_k_sze_cs_p_szo'.split('_'),
8318 LL
: 'YYYY. MMMM D.',
8319 LLL
: 'YYYY. MMMM D. H:mm',
8320 LLLL
: 'YYYY. MMMM D., dddd H:mm'
8322 meridiemParse
: /de|du/i,
8323 isPM: function (input
) {
8324 return input
.charAt(1).toLowerCase() === 'u';
8326 meridiem : function (hours
, minutes
, isLower
) {
8328 return isLower
=== true ? 'de' : 'DE';
8330 return isLower
=== true ? 'du' : 'DU';
8334 sameDay
: '[ma] LT[-kor]',
8335 nextDay
: '[holnap] LT[-kor]',
8336 nextWeek : function () {
8337 return week
.call(this, true);
8339 lastDay
: '[tegnap] LT[-kor]',
8340 lastWeek : function () {
8341 return week
.call(this, false);
8346 future
: '%s múlva',
8360 dayOfMonthOrdinalParse
: /\d{1,2}\./,
8363 dow
: 1, // Monday is the first day of the week.
8364 doy
: 4 // The week that contains Jan 4th is the first week of the year.
8368 //! moment.js locale configuration
8369 //! locale : Armenian [hy-am]
8370 //! author : Armendarabyan : https://github.com/armendarabyan
8372 hooks
.defineLocale('hy-am', {
8374 format
: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
8375 standalone
: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
8377 monthsShort
: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
8378 weekdays
: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
8379 weekdaysShort
: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
8380 weekdaysMin
: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
8385 LL
: 'D MMMM YYYY թ.',
8386 LLL
: 'D MMMM YYYY թ., HH:mm',
8387 LLLL
: 'dddd, D MMMM YYYY թ., HH:mm'
8390 sameDay
: '[այսօր] LT',
8391 nextDay
: '[վաղը] LT',
8392 lastDay
: '[երեկ] LT',
8393 nextWeek: function () {
8394 return 'dddd [օրը ժամը] LT';
8396 lastWeek: function () {
8397 return '[անցած] dddd [օրը ժամը] LT';
8404 s
: 'մի քանի վայրկյան',
8416 meridiemParse
: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
8417 isPM: function (input
) {
8418 return /^(ցերեկվա|երեկոյան)$/.test(input
);
8420 meridiem : function (hour
) {
8423 } else if (hour
< 12) {
8425 } else if (hour
< 17) {
8431 dayOfMonthOrdinalParse
: /\d{1,2}|\d{1,2}-(ին|րդ)/,
8432 ordinal: function (number
, period
) {
8439 return number
+ '-ին';
8441 return number
+ '-րդ';
8447 dow
: 1, // Monday is the first day of the week.
8448 doy
: 7 // The week that contains Jan 1st is the first week of the year.
8452 //! moment.js locale configuration
8453 //! locale : Indonesian [id]
8454 //! author : Mohammad Satrio Utomo : https://github.com/tyok
8455 //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
8457 hooks
.defineLocale('id', {
8458 months
: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
8459 monthsShort
: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),
8460 weekdays
: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
8461 weekdaysShort
: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
8462 weekdaysMin
: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
8468 LLL
: 'D MMMM YYYY [pukul] HH.mm',
8469 LLLL
: 'dddd, D MMMM YYYY [pukul] HH.mm'
8471 meridiemParse
: /pagi|siang|sore|malam/,
8472 meridiemHour : function (hour
, meridiem
) {
8476 if (meridiem
=== 'pagi') {
8478 } else if (meridiem
=== 'siang') {
8479 return hour
>= 11 ? hour
: hour
+ 12;
8480 } else if (meridiem
=== 'sore' || meridiem
=== 'malam') {
8484 meridiem : function (hours
, minutes
, isLower
) {
8487 } else if (hours
< 15) {
8489 } else if (hours
< 19) {
8496 sameDay
: '[Hari ini pukul] LT',
8497 nextDay
: '[Besok pukul] LT',
8498 nextWeek
: 'dddd [pukul] LT',
8499 lastDay
: '[Kemarin pukul] LT',
8500 lastWeek
: 'dddd [lalu pukul] LT',
8504 future
: 'dalam %s',
8505 past
: '%s yang lalu',
8506 s
: 'beberapa detik',
8519 dow
: 1, // Monday is the first day of the week.
8520 doy
: 7 // The week that contains Jan 1st is the first week of the year.
8524 //! moment.js locale configuration
8525 //! locale : Icelandic [is]
8526 //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
8528 function plural
$2(n
) {
8529 if (n
% 100 === 11) {
8531 } else if (n
% 10 === 1) {
8536 function translate
$5(number
, withoutSuffix
, key
, isFuture
) {
8537 var result
= number
+ ' ';
8540 return withoutSuffix
|| isFuture
? 'nokkrar sekúndur' : 'nokkrum sekúndum';
8542 return withoutSuffix
? 'mínúta' : 'mínútu';
8544 if (plural
$2(number
)) {
8545 return result
+ (withoutSuffix
|| isFuture
? 'mínútur' : 'mínútum');
8546 } else if (withoutSuffix
) {
8547 return result
+ 'mínúta';
8549 return result
+ 'mínútu';
8551 if (plural
$2(number
)) {
8552 return result
+ (withoutSuffix
|| isFuture
? 'klukkustundir' : 'klukkustundum');
8554 return result
+ 'klukkustund';
8556 if (withoutSuffix
) {
8559 return isFuture
? 'dag' : 'degi';
8561 if (plural
$2(number
)) {
8562 if (withoutSuffix
) {
8563 return result
+ 'dagar';
8565 return result
+ (isFuture
? 'daga' : 'dögum');
8566 } else if (withoutSuffix
) {
8567 return result
+ 'dagur';
8569 return result
+ (isFuture
? 'dag' : 'degi');
8571 if (withoutSuffix
) {
8574 return isFuture
? 'mánuð' : 'mánuði';
8576 if (plural
$2(number
)) {
8577 if (withoutSuffix
) {
8578 return result
+ 'mánuðir';
8580 return result
+ (isFuture
? 'mánuði' : 'mánuðum');
8581 } else if (withoutSuffix
) {
8582 return result
+ 'mánuður';
8584 return result
+ (isFuture
? 'mánuð' : 'mánuði');
8586 return withoutSuffix
|| isFuture
? 'ár' : 'ári';
8588 if (plural
$2(number
)) {
8589 return result
+ (withoutSuffix
|| isFuture
? 'ár' : 'árum');
8591 return result
+ (withoutSuffix
|| isFuture
? 'ár' : 'ári');
8595 hooks
.defineLocale('is', {
8596 months
: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
8597 monthsShort
: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
8598 weekdays
: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
8599 weekdaysShort
: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
8600 weekdaysMin
: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
8605 LL
: 'D. MMMM YYYY',
8606 LLL
: 'D. MMMM YYYY [kl.] H:mm',
8607 LLLL
: 'dddd, D. MMMM YYYY [kl.] H:mm'
8610 sameDay
: '[í dag kl.] LT',
8611 nextDay
: '[á morgun kl.] LT',
8612 nextWeek
: 'dddd [kl.] LT',
8613 lastDay
: '[í gær kl.] LT',
8614 lastWeek
: '[síðasta] dddd [kl.] LT',
8618 future
: 'eftir %s',
8619 past
: 'fyrir %s síðan',
8632 dayOfMonthOrdinalParse
: /\d{1,2}\./,
8635 dow
: 1, // Monday is the first day of the week.
8636 doy
: 4 // The week that contains Jan 4th is the first week of the year.
8640 //! moment.js locale configuration
8641 //! locale : Italian [it]
8642 //! author : Lorenzo : https://github.com/aliem
8643 //! author: Mattia Larentis: https://github.com/nostalgiaz
8645 hooks
.defineLocale('it', {
8646 months
: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
8647 monthsShort
: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
8648 weekdays
: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
8649 weekdaysShort
: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
8650 weekdaysMin
: 'do_lu_ma_me_gi_ve_sa'.split('_'),
8656 LLL
: 'D MMMM YYYY HH:mm',
8657 LLLL
: 'dddd, D MMMM YYYY HH:mm'
8660 sameDay
: '[Oggi alle] LT',
8661 nextDay
: '[Domani alle] LT',
8662 nextWeek
: 'dddd [alle] LT',
8663 lastDay
: '[Ieri alle] LT',
8664 lastWeek: function () {
8665 switch (this.day()) {
8667 return '[la scorsa] dddd [alle] LT';
8669 return '[lo scorso] dddd [alle] LT';
8675 future : function (s
) {
8676 return ((/^[0-9].+$/).test(s
) ? 'tra' : 'in') + ' ' + s
;
8679 s
: 'alcuni secondi',
8691 dayOfMonthOrdinalParse
: /\d{1,2}º/,
8694 dow
: 1, // Monday is the first day of the week.
8695 doy
: 4 // The week that contains Jan 4th is the first week of the year.
8699 //! moment.js locale configuration
8700 //! locale : Japanese [ja]
8701 //! author : LI Long : https://github.com/baryon
8703 hooks
.defineLocale('ja', {
8704 months
: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
8705 monthsShort
: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
8706 weekdays
: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
8707 weekdaysShort
: '日_月_火_水_木_金_土'.split('_'),
8708 weekdaysMin
: '日_月_火_水_木_金_土'.split('_'),
8714 LLL
: 'YYYY年M月D日 HH:mm',
8715 LLLL
: 'YYYY年M月D日 HH:mm dddd',
8718 lll
: 'YYYY年M月D日 HH:mm',
8719 llll
: 'YYYY年M月D日 HH:mm dddd'
8721 meridiemParse
: /午前|午後/i,
8722 isPM : function (input
) {
8723 return input
=== '午後';
8725 meridiem : function (hour
, minute
, isLower
) {
8733 sameDay
: '[今日] LT',
8734 nextDay
: '[明日] LT',
8735 nextWeek
: '[来週]dddd LT',
8736 lastDay
: '[昨日] LT',
8737 lastWeek
: '[前週]dddd LT',
8740 dayOfMonthOrdinalParse
: /\d{1,2}日/,
8741 ordinal : function (number
, period
) {
8746 return number
+ '日';
8768 //! moment.js locale configuration
8769 //! locale : Javanese [jv]
8770 //! author : Rony Lantip : https://github.com/lantip
8771 //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
8773 hooks
.defineLocale('jv', {
8774 months
: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
8775 monthsShort
: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
8776 weekdays
: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
8777 weekdaysShort
: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
8778 weekdaysMin
: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
8784 LLL
: 'D MMMM YYYY [pukul] HH.mm',
8785 LLLL
: 'dddd, D MMMM YYYY [pukul] HH.mm'
8787 meridiemParse
: /enjing|siyang|sonten|ndalu/,
8788 meridiemHour : function (hour
, meridiem
) {
8792 if (meridiem
=== 'enjing') {
8794 } else if (meridiem
=== 'siyang') {
8795 return hour
>= 11 ? hour
: hour
+ 12;
8796 } else if (meridiem
=== 'sonten' || meridiem
=== 'ndalu') {
8800 meridiem : function (hours
, minutes
, isLower
) {
8803 } else if (hours
< 15) {
8805 } else if (hours
< 19) {
8812 sameDay
: '[Dinten puniko pukul] LT',
8813 nextDay
: '[Mbenjang pukul] LT',
8814 nextWeek
: 'dddd [pukul] LT',
8815 lastDay
: '[Kala wingi pukul] LT',
8816 lastWeek
: 'dddd [kepengker pukul] LT',
8820 future
: 'wonten ing %s',
8821 past
: '%s ingkang kepengker',
8822 s
: 'sawetawis detik',
8823 m
: 'setunggal menit',
8825 h
: 'setunggal jam',
8835 dow
: 1, // Monday is the first day of the week.
8836 doy
: 7 // The week that contains Jan 1st is the first week of the year.
8840 //! moment.js locale configuration
8841 //! locale : Georgian [ka]
8842 //! author : Irakli Janiashvili : https://github.com/irakli-janiashvili
8844 hooks
.defineLocale('ka', {
8846 standalone
: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
8847 format
: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
8849 monthsShort
: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
8851 standalone
: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
8852 format
: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
8853 isFormat
: /(წინა|შემდეგ)/
8855 weekdaysShort
: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
8856 weekdaysMin
: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
8862 LLL
: 'D MMMM YYYY h:mm A',
8863 LLLL
: 'dddd, D MMMM YYYY h:mm A'
8866 sameDay
: '[დღეს] LT[-ზე]',
8867 nextDay
: '[ხვალ] LT[-ზე]',
8868 lastDay
: '[გუშინ] LT[-ზე]',
8869 nextWeek
: '[შემდეგ] dddd LT[-ზე]',
8870 lastWeek
: '[წინა] dddd LT-ზე',
8874 future : function (s
) {
8875 return (/(წამი|წუთი|საათი|წელი)/).test(s
) ?
8876 s
.replace(/ი$/, 'ში') :
8879 past : function (s
) {
8880 if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s
)) {
8881 return s
.replace(/(ი|ე)$/, 'ის უკან');
8883 if ((/წელი/).test(s
)) {
8884 return s
.replace(/წელი$/, 'წლის უკან');
8887 s
: 'რამდენიმე წამი',
8899 dayOfMonthOrdinalParse
: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
8900 ordinal : function (number
) {
8905 return number
+ '-ლი';
8907 if ((number
< 20) || (number
<= 100 && (number
% 20 === 0)) || (number
% 100 === 0)) {
8908 return 'მე-' + number
;
8910 return number
+ '-ე';
8918 //! moment.js locale configuration
8919 //! locale : Kazakh [kk]
8920 //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
8945 hooks
.defineLocale('kk', {
8946 months
: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
8947 monthsShort
: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
8948 weekdays
: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
8949 weekdaysShort
: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
8950 weekdaysMin
: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
8956 LLL
: 'D MMMM YYYY HH:mm',
8957 LLLL
: 'dddd, D MMMM YYYY HH:mm'
8960 sameDay
: '[Бүгін сағат] LT',
8961 nextDay
: '[Ертең сағат] LT',
8962 nextWeek
: 'dddd [сағат] LT',
8963 lastDay
: '[Кеше сағат] LT',
8964 lastWeek
: '[Өткен аптаның] dddd [сағат] LT',
8968 future
: '%s ішінде',
8970 s
: 'бірнеше секунд',
8982 dayOfMonthOrdinalParse
: /\d{1,2}-(ші|шы)/,
8983 ordinal : function (number
) {
8984 var a
= number
% 10,
8985 b
= number
>= 100 ? 100 : null;
8986 return number
+ (suffixes
$1[number
] || suffixes
$1[a
] || suffixes
$1[b
]);
8989 dow
: 1, // Monday is the first day of the week.
8990 doy
: 7 // The week that contains Jan 1st is the first week of the year.
8994 //! moment.js locale configuration
8995 //! locale : Cambodian [km]
8996 //! author : Kruy Vanna : https://github.com/kruyvanna
8998 hooks
.defineLocale('km', {
8999 months
: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
9000 monthsShort
: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
9001 weekdays
: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
9002 weekdaysShort
: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
9003 weekdaysMin
: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
9009 LLL
: 'D MMMM YYYY HH:mm',
9010 LLLL
: 'dddd, D MMMM YYYY HH:mm'
9013 sameDay
: '[ថ្ងៃនេះ ម៉ោង] LT',
9014 nextDay
: '[ស្អែក ម៉ោង] LT',
9015 nextWeek
: 'dddd [ម៉ោង] LT',
9016 lastDay
: '[ម្សិលមិញ ម៉ោង] LT',
9017 lastWeek
: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
9023 s
: 'ប៉ុន្មានវិនាទី',
9036 dow
: 1, // Monday is the first day of the week.
9037 doy
: 4 // The week that contains Jan 4th is the first week of the year.
9041 //! moment.js locale configuration
9042 //! locale : Kannada [kn]
9043 //! author : Rajeev Naik : https://github.com/rajeevnaikte
9070 hooks
.defineLocale('kn', {
9071 months
: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),
9072 monthsShort
: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬ_ಅಕ್ಟೋಬ_ನವೆಂಬ_ಡಿಸೆಂಬ'.split('_'),
9073 monthsParseExact
: true,
9074 weekdays
: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),
9075 weekdaysShort
: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
9076 weekdaysMin
: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
9082 LLL
: 'D MMMM YYYY, A h:mm',
9083 LLLL
: 'dddd, D MMMM YYYY, A h:mm'
9086 sameDay
: '[ಇಂದು] LT',
9087 nextDay
: '[ನಾಳೆ] LT',
9088 nextWeek
: 'dddd, LT',
9089 lastDay
: '[ನಿನ್ನೆ] LT',
9090 lastWeek
: '[ಕೊನೆಯ] dddd, LT',
9096 s
: 'ಕೆಲವು ಕ್ಷಣಗಳು',
9108 preparse: function (string
) {
9109 return string
.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match
) {
9110 return numberMap
$6[match
];
9113 postformat: function (string
) {
9114 return string
.replace(/\d/g, function (match
) {
9115 return symbolMap
$7[match
];
9118 meridiemParse
: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
9119 meridiemHour : function (hour
, meridiem
) {
9123 if (meridiem
=== 'ರಾತ್ರಿ') {
9124 return hour
< 4 ? hour
: hour
+ 12;
9125 } else if (meridiem
=== 'ಬೆಳಿಗ್ಗೆ') {
9127 } else if (meridiem
=== 'ಮಧ್ಯಾಹ್ನ') {
9128 return hour
>= 10 ? hour
: hour
+ 12;
9129 } else if (meridiem
=== 'ಸಂಜೆ') {
9133 meridiem : function (hour
, minute
, isLower
) {
9136 } else if (hour
< 10) {
9138 } else if (hour
< 17) {
9140 } else if (hour
< 20) {
9146 dayOfMonthOrdinalParse
: /\d{1,2}(ನೇ)/,
9147 ordinal : function (number
) {
9148 return number
+ 'ನೇ';
9151 dow
: 0, // Sunday is the first day of the week.
9152 doy
: 6 // The week that contains Jan 1st is the first week of the year.
9156 //! moment.js locale configuration
9157 //! locale : Korean [ko]
9158 //! author : Kyungwook, Park : https://github.com/kyungw00k
9159 //! author : Jeeeyul Lee <jeeeyul@gmail.com>
9161 hooks
.defineLocale('ko', {
9162 months
: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
9163 monthsShort
: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
9164 weekdays
: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
9165 weekdaysShort
: '일_월_화_수_목_금_토'.split('_'),
9166 weekdaysMin
: '일_월_화_수_목_금_토'.split('_'),
9171 LL
: 'YYYY년 MMMM D일',
9172 LLL
: 'YYYY년 MMMM D일 A h:mm',
9173 LLLL
: 'YYYY년 MMMM D일 dddd A h:mm',
9175 ll
: 'YYYY년 MMMM D일',
9176 lll
: 'YYYY년 MMMM D일 A h:mm',
9177 llll
: 'YYYY년 MMMM D일 dddd A h:mm'
9182 nextWeek
: 'dddd LT',
9184 lastWeek
: '지난주 dddd LT',
9203 dayOfMonthOrdinalParse
: /\d{1,2}일/,
9205 meridiemParse
: /오전|오후/,
9206 isPM : function (token
) {
9207 return token
=== '오후';
9209 meridiem : function (hour
, minute
, isUpper
) {
9210 return hour
< 12 ? '오전' : '오후';
9214 //! moment.js locale configuration
9215 //! locale : Kyrgyz [ky]
9216 //! author : Chyngyz Arystan uulu : https://github.com/chyngyz
9242 hooks
.defineLocale('ky', {
9243 months
: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
9244 monthsShort
: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
9245 weekdays
: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
9246 weekdaysShort
: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
9247 weekdaysMin
: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
9253 LLL
: 'D MMMM YYYY HH:mm',
9254 LLLL
: 'dddd, D MMMM YYYY HH:mm'
9257 sameDay
: '[Бүгүн саат] LT',
9258 nextDay
: '[Эртең саат] LT',
9259 nextWeek
: 'dddd [саат] LT',
9260 lastDay
: '[Кече саат] LT',
9261 lastWeek
: '[Өткен аптанын] dddd [күнү] [саат] LT',
9265 future
: '%s ичинде',
9267 s
: 'бирнече секунд',
9279 dayOfMonthOrdinalParse
: /\d{1,2}-(чи|чы|чү|чу)/,
9280 ordinal : function (number
) {
9281 var a
= number
% 10,
9282 b
= number
>= 100 ? 100 : null;
9283 return number
+ (suffixes
$2[number
] || suffixes
$2[a
] || suffixes
$2[b
]);
9286 dow
: 1, // Monday is the first day of the week.
9287 doy
: 7 // The week that contains Jan 1st is the first week of the year.
9291 //! moment.js locale configuration
9292 //! locale : Luxembourgish [lb]
9293 //! author : mweimerskirch : https://github.com/mweimerskirch
9294 //! author : David Raison : https://github.com/kwisatz
9296 function processRelativeTime
$5(number
, withoutSuffix
, key
, isFuture
) {
9298 'm': ['eng Minutt', 'enger Minutt'],
9299 'h': ['eng Stonn', 'enger Stonn'],
9300 'd': ['een Dag', 'engem Dag'],
9301 'M': ['ee Mount', 'engem Mount'],
9302 'y': ['ee Joer', 'engem Joer']
9304 return withoutSuffix
? format
[key
][0] : format
[key
][1];
9306 function processFutureTime(string
) {
9307 var number
= string
.substr(0, string
.indexOf(' '));
9308 if (eifelerRegelAppliesToNumber(number
)) {
9309 return 'a ' + string
;
9311 return 'an ' + string
;
9313 function processPastTime(string
) {
9314 var number
= string
.substr(0, string
.indexOf(' '));
9315 if (eifelerRegelAppliesToNumber(number
)) {
9316 return 'viru ' + string
;
9318 return 'virun ' + string
;
9321 * Returns true if the word before the given number loses the '-n' ending.
9322 * e.g. 'an 10 Deeg' but 'a 5 Deeg'
9324 * @param number {integer}
9325 * @returns {boolean}
9327 function eifelerRegelAppliesToNumber(number
) {
9328 number
= parseInt(number
, 10);
9329 if (isNaN(number
)) {
9333 // Negative Number --> always true
9335 } else if (number
< 10) {
9337 if (4 <= number
&& number
<= 7) {
9341 } else if (number
< 100) {
9343 var lastDigit
= number
% 10, firstDigit
= number
/ 10;
9344 if (lastDigit
=== 0) {
9345 return eifelerRegelAppliesToNumber(firstDigit
);
9347 return eifelerRegelAppliesToNumber(lastDigit
);
9348 } else if (number
< 10000) {
9349 // 3 or 4 digits --> recursively check first digit
9350 while (number
>= 10) {
9351 number
= number
/ 10;
9353 return eifelerRegelAppliesToNumber(number
);
9355 // Anything larger than 4 digits: recursively check first n-3 digits
9356 number
= number
/ 1000;
9357 return eifelerRegelAppliesToNumber(number
);
9361 hooks
.defineLocale('lb', {
9362 months
: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
9363 monthsShort
: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
9364 monthsParseExact
: true,
9365 weekdays
: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
9366 weekdaysShort
: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
9367 weekdaysMin
: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
9368 weekdaysParseExact
: true,
9371 LTS
: 'H:mm:ss [Auer]',
9374 LLL
: 'D. MMMM YYYY H:mm [Auer]',
9375 LLLL
: 'dddd, D. MMMM YYYY H:mm [Auer]'
9378 sameDay
: '[Haut um] LT',
9380 nextDay
: '[Muer um] LT',
9381 nextWeek
: 'dddd [um] LT',
9382 lastDay
: '[Gëschter um] LT',
9383 lastWeek: function () {
9384 // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
9385 switch (this.day()) {
9388 return '[Leschten] dddd [um] LT';
9390 return '[Leschte] dddd [um] LT';
9395 future
: processFutureTime
,
9396 past
: processPastTime
,
9397 s
: 'e puer Sekonnen',
9398 m
: processRelativeTime
$5,
9400 h
: processRelativeTime
$5,
9402 d
: processRelativeTime
$5,
9404 M
: processRelativeTime
$5,
9406 y
: processRelativeTime
$5,
9409 dayOfMonthOrdinalParse
: /\d{1,2}\./,
9412 dow
: 1, // Monday is the first day of the week.
9413 doy
: 4 // The week that contains Jan 4th is the first week of the year.
9417 //! moment.js locale configuration
9418 //! locale : Lao [lo]
9419 //! author : Ryan Hart : https://github.com/ryanhart2
9421 hooks
.defineLocale('lo', {
9422 months
: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
9423 monthsShort
: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
9424 weekdays
: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
9425 weekdaysShort
: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
9426 weekdaysMin
: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
9427 weekdaysParseExact
: true,
9433 LLL
: 'D MMMM YYYY HH:mm',
9434 LLLL
: 'ວັນdddd D MMMM YYYY HH:mm'
9436 meridiemParse
: /ຕອນເຊົ້າ|ຕອນແລງ/,
9437 isPM: function (input
) {
9438 return input
=== 'ຕອນແລງ';
9440 meridiem : function (hour
, minute
, isLower
) {
9448 sameDay
: '[ມື້ນີ້ເວລາ] LT',
9449 nextDay
: '[ມື້ອື່ນເວລາ] LT',
9450 nextWeek
: '[ວັນ]dddd[ໜ້າເວລາ] LT',
9451 lastDay
: '[ມື້ວານນີ້ເວລາ] LT',
9452 lastWeek
: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
9458 s
: 'ບໍ່ເທົ່າໃດວິນາທີ',
9470 dayOfMonthOrdinalParse
: /(ທີ່)\d{1,2}/,
9471 ordinal : function (number
) {
9472 return 'ທີ່' + number
;
9476 //! moment.js locale configuration
9477 //! locale : Lithuanian [lt]
9478 //! author : Mindaugas Mozūras : https://github.com/mmozuras
9481 'm' : 'minutė_minutės_minutę',
9482 'mm': 'minutės_minučių_minutes',
9483 'h' : 'valanda_valandos_valandą',
9484 'hh': 'valandos_valandų_valandas',
9485 'd' : 'diena_dienos_dieną',
9486 'dd': 'dienos_dienų_dienas',
9487 'M' : 'mėnuo_mėnesio_mėnesį',
9488 'MM': 'mėnesiai_mėnesių_mėnesius',
9489 'y' : 'metai_metų_metus',
9490 'yy': 'metai_metų_metus'
9492 function translateSeconds(number
, withoutSuffix
, key
, isFuture
) {
9493 if (withoutSuffix
) {
9494 return 'kelios sekundės';
9496 return isFuture
? 'kelių sekundžių' : 'kelias sekundes';
9499 function translateSingular(number
, withoutSuffix
, key
, isFuture
) {
9500 return withoutSuffix
? forms(key
)[0] : (isFuture
? forms(key
)[1] : forms(key
)[2]);
9502 function special(number
) {
9503 return number
% 10 === 0 || (number
> 10 && number
< 20);
9505 function forms(key
) {
9506 return units
[key
].split('_');
9508 function translate
$6(number
, withoutSuffix
, key
, isFuture
) {
9509 var result
= number
+ ' ';
9511 return result
+ translateSingular(number
, withoutSuffix
, key
[0], isFuture
);
9512 } else if (withoutSuffix
) {
9513 return result
+ (special(number
) ? forms(key
)[1] : forms(key
)[0]);
9516 return result
+ forms(key
)[1];
9518 return result
+ (special(number
) ? forms(key
)[1] : forms(key
)[2]);
9522 hooks
.defineLocale('lt', {
9524 format
: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
9525 standalone
: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
9526 isFormat
: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
9528 monthsShort
: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
9530 format
: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
9531 standalone
: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
9532 isFormat
: /dddd HH:mm/
9534 weekdaysShort
: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
9535 weekdaysMin
: 'S_P_A_T_K_Pn_Š'.split('_'),
9536 weekdaysParseExact
: true,
9541 LL
: 'YYYY [m.] MMMM D [d.]',
9542 LLL
: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
9543 LLLL
: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
9545 ll
: 'YYYY [m.] MMMM D [d.]',
9546 lll
: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
9547 llll
: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
9550 sameDay
: '[Šiandien] LT',
9551 nextDay
: '[Rytoj] LT',
9552 nextWeek
: 'dddd LT',
9553 lastDay
: '[Vakar] LT',
9554 lastWeek
: '[Praėjusį] dddd LT',
9560 s
: translateSeconds
,
9561 m
: translateSingular
,
9563 h
: translateSingular
,
9565 d
: translateSingular
,
9567 M
: translateSingular
,
9569 y
: translateSingular
,
9572 dayOfMonthOrdinalParse
: /\d{1,2}-oji/,
9573 ordinal : function (number
) {
9574 return number
+ '-oji';
9577 dow
: 1, // Monday is the first day of the week.
9578 doy
: 4 // The week that contains Jan 4th is the first week of the year.
9582 //! moment.js locale configuration
9583 //! locale : Latvian [lv]
9584 //! author : Kristaps Karlsons : https://github.com/skakri
9585 //! author : Jānis Elmeris : https://github.com/JanisE
9588 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
9589 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
9590 'h': 'stundas_stundām_stunda_stundas'.split('_'),
9591 'hh': 'stundas_stundām_stunda_stundas'.split('_'),
9592 'd': 'dienas_dienām_diena_dienas'.split('_'),
9593 'dd': 'dienas_dienām_diena_dienas'.split('_'),
9594 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
9595 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
9596 'y': 'gada_gadiem_gads_gadi'.split('_'),
9597 'yy': 'gada_gadiem_gads_gadi'.split('_')
9600 * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
9602 function format
$1(forms
, number
, withoutSuffix
) {
9603 if (withoutSuffix
) {
9604 // E.g. "21 minūte", "3 minūtes".
9605 return number
% 10 === 1 && number
% 100 !== 11 ? forms
[2] : forms
[3];
9607 // E.g. "21 minūtes" as in "pēc 21 minūtes".
9608 // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
9609 return number
% 10 === 1 && number
% 100 !== 11 ? forms
[0] : forms
[1];
9612 function relativeTimeWithPlural
$1(number
, withoutSuffix
, key
) {
9613 return number
+ ' ' + format
$1(units
$1[key
], number
, withoutSuffix
);
9615 function relativeTimeWithSingular(number
, withoutSuffix
, key
) {
9616 return format
$1(units
$1[key
], number
, withoutSuffix
);
9618 function relativeSeconds(number
, withoutSuffix
) {
9619 return withoutSuffix
? 'dažas sekundes' : 'dažām sekundēm';
9622 hooks
.defineLocale('lv', {
9623 months
: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
9624 monthsShort
: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
9625 weekdays
: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
9626 weekdaysShort
: 'Sv_P_O_T_C_Pk_S'.split('_'),
9627 weekdaysMin
: 'Sv_P_O_T_C_Pk_S'.split('_'),
9628 weekdaysParseExact
: true,
9633 LL
: 'YYYY. [gada] D. MMMM',
9634 LLL
: 'YYYY. [gada] D. MMMM, HH:mm',
9635 LLLL
: 'YYYY. [gada] D. MMMM, dddd, HH:mm'
9638 sameDay
: '[Šodien pulksten] LT',
9639 nextDay
: '[Rīt pulksten] LT',
9640 nextWeek
: 'dddd [pulksten] LT',
9641 lastDay
: '[Vakar pulksten] LT',
9642 lastWeek
: '[Pagājušā] dddd [pulksten] LT',
9648 s
: relativeSeconds
,
9649 m
: relativeTimeWithSingular
,
9650 mm
: relativeTimeWithPlural
$1,
9651 h
: relativeTimeWithSingular
,
9652 hh
: relativeTimeWithPlural
$1,
9653 d
: relativeTimeWithSingular
,
9654 dd
: relativeTimeWithPlural
$1,
9655 M
: relativeTimeWithSingular
,
9656 MM
: relativeTimeWithPlural
$1,
9657 y
: relativeTimeWithSingular
,
9658 yy
: relativeTimeWithPlural
$1
9660 dayOfMonthOrdinalParse
: /\d{1,2}\./,
9663 dow
: 1, // Monday is the first day of the week.
9664 doy
: 4 // The week that contains Jan 4th is the first week of the year.
9668 //! moment.js locale configuration
9669 //! locale : Montenegrin [me]
9670 //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
9673 words
: { //Different grammatical cases
9674 m
: ['jedan minut', 'jednog minuta'],
9675 mm
: ['minut', 'minuta', 'minuta'],
9676 h
: ['jedan sat', 'jednog sata'],
9677 hh
: ['sat', 'sata', 'sati'],
9678 dd
: ['dan', 'dana', 'dana'],
9679 MM
: ['mjesec', 'mjeseca', 'mjeseci'],
9680 yy
: ['godina', 'godine', 'godina']
9682 correctGrammaticalCase: function (number
, wordKey
) {
9683 return number
=== 1 ? wordKey
[0] : (number
>= 2 && number
<= 4 ? wordKey
[1] : wordKey
[2]);
9685 translate: function (number
, withoutSuffix
, key
) {
9686 var wordKey
= translator
.words
[key
];
9687 if (key
.length
=== 1) {
9688 return withoutSuffix
? wordKey
[0] : wordKey
[1];
9690 return number
+ ' ' + translator
.correctGrammaticalCase(number
, wordKey
);
9695 hooks
.defineLocale('me', {
9696 months
: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
9697 monthsShort
: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
9698 monthsParseExact
: true,
9699 weekdays
: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
9700 weekdaysShort
: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
9701 weekdaysMin
: 'ne_po_ut_sr_če_pe_su'.split('_'),
9702 weekdaysParseExact
: true,
9708 LLL
: 'D. MMMM YYYY H:mm',
9709 LLLL
: 'dddd, D. MMMM YYYY H:mm'
9712 sameDay
: '[danas u] LT',
9713 nextDay
: '[sjutra u] LT',
9715 nextWeek: function () {
9716 switch (this.day()) {
9718 return '[u] [nedjelju] [u] LT';
9720 return '[u] [srijedu] [u] LT';
9722 return '[u] [subotu] [u] LT';
9727 return '[u] dddd [u] LT';
9730 lastDay
: '[juče u] LT',
9731 lastWeek : function () {
9732 var lastWeekDays
= [
9733 '[prošle] [nedjelje] [u] LT',
9734 '[prošlog] [ponedjeljka] [u] LT',
9735 '[prošlog] [utorka] [u] LT',
9736 '[prošle] [srijede] [u] LT',
9737 '[prošlog] [četvrtka] [u] LT',
9738 '[prošlog] [petka] [u] LT',
9739 '[prošle] [subote] [u] LT'
9741 return lastWeekDays
[this.day()];
9748 s
: 'nekoliko sekundi',
9749 m
: translator
.translate
,
9750 mm
: translator
.translate
,
9751 h
: translator
.translate
,
9752 hh
: translator
.translate
,
9754 dd
: translator
.translate
,
9756 MM
: translator
.translate
,
9758 yy
: translator
.translate
9760 dayOfMonthOrdinalParse
: /\d{1,2}\./,
9763 dow
: 1, // Monday is the first day of the week.
9764 doy
: 7 // The week that contains Jan 1st is the first week of the year.
9768 //! moment.js locale configuration
9769 //! locale : Maori [mi]
9770 //! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
9772 hooks
.defineLocale('mi', {
9773 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('_'),
9774 monthsShort
: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
9775 monthsRegex
: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
9776 monthsStrictRegex
: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
9777 monthsShortRegex
: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
9778 monthsShortStrictRegex
: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
9779 weekdays
: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
9780 weekdaysShort
: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
9781 weekdaysMin
: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
9787 LLL
: 'D MMMM YYYY [i] HH:mm',
9788 LLLL
: 'dddd, D MMMM YYYY [i] HH:mm'
9791 sameDay
: '[i teie mahana, i] LT',
9792 nextDay
: '[apopo i] LT',
9793 nextWeek
: 'dddd [i] LT',
9794 lastDay
: '[inanahi i] LT',
9795 lastWeek
: 'dddd [whakamutunga i] LT',
9799 future
: 'i roto i %s',
9801 s
: 'te hēkona ruarua',
9813 dayOfMonthOrdinalParse
: /\d{1,2}º/,
9816 dow
: 1, // Monday is the first day of the week.
9817 doy
: 4 // The week that contains Jan 4th is the first week of the year.
9821 //! moment.js locale configuration
9822 //! locale : Macedonian [mk]
9823 //! author : Borislav Mickov : https://github.com/B0k0
9825 hooks
.defineLocale('mk', {
9826 months
: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
9827 monthsShort
: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
9828 weekdays
: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
9829 weekdaysShort
: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
9830 weekdaysMin
: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
9836 LLL
: 'D MMMM YYYY H:mm',
9837 LLLL
: 'dddd, D MMMM YYYY H:mm'
9840 sameDay
: '[Денес во] LT',
9841 nextDay
: '[Утре во] LT',
9842 nextWeek
: '[Во] dddd [во] LT',
9843 lastDay
: '[Вчера во] LT',
9844 lastWeek : function () {
9845 switch (this.day()) {
9849 return '[Изминатата] dddd [во] LT';
9854 return '[Изминатиот] dddd [во] LT';
9860 future
: 'после %s',
9862 s
: 'неколку секунди',
9874 dayOfMonthOrdinalParse
: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
9875 ordinal : function (number
) {
9876 var lastDigit
= number
% 10,
9877 last2Digits
= number
% 100;
9879 return number
+ '-ев';
9880 } else if (last2Digits
=== 0) {
9881 return number
+ '-ен';
9882 } else if (last2Digits
> 10 && last2Digits
< 20) {
9883 return number
+ '-ти';
9884 } else if (lastDigit
=== 1) {
9885 return number
+ '-ви';
9886 } else if (lastDigit
=== 2) {
9887 return number
+ '-ри';
9888 } else if (lastDigit
=== 7 || lastDigit
=== 8) {
9889 return number
+ '-ми';
9891 return number
+ '-ти';
9895 dow
: 1, // Monday is the first day of the week.
9896 doy
: 7 // The week that contains Jan 1st is the first week of the year.
9900 //! moment.js locale configuration
9901 //! locale : Malayalam [ml]
9902 //! author : Floyd Pink : https://github.com/floydpink
9904 hooks
.defineLocale('ml', {
9905 months
: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
9906 monthsShort
: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
9907 monthsParseExact
: true,
9908 weekdays
: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
9909 weekdaysShort
: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
9910 weekdaysMin
: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
9913 LTS
: 'A h:mm:ss -നു',
9916 LLL
: 'D MMMM YYYY, A h:mm -നു',
9917 LLLL
: 'dddd, D MMMM YYYY, A h:mm -നു'
9920 sameDay
: '[ഇന്ന്] LT',
9921 nextDay
: '[നാളെ] LT',
9922 nextWeek
: 'dddd, LT',
9923 lastDay
: '[ഇന്നലെ] LT',
9924 lastWeek
: '[കഴിഞ്ഞ] dddd, LT',
9928 future
: '%s കഴിഞ്ഞ്',
9930 s
: 'അൽപ നിമിഷങ്ങൾ',
9942 meridiemParse
: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
9943 meridiemHour : function (hour
, meridiem
) {
9947 if ((meridiem
=== 'രാത്രി' && hour
>= 4) ||
9948 meridiem
=== 'ഉച്ച കഴിഞ്ഞ്' ||
9949 meridiem
=== 'വൈകുന്നേരം') {
9955 meridiem : function (hour
, minute
, isLower
) {
9958 } else if (hour
< 12) {
9960 } else if (hour
< 17) {
9961 return 'ഉച്ച കഴിഞ്ഞ്';
9962 } else if (hour
< 20) {
9963 return 'വൈകുന്നേരം';
9970 //! moment.js locale configuration
9971 //! locale : Marathi [mr]
9972 //! author : Harshad Kale : https://github.com/kalehv
9973 //! author : Vivek Athalye : https://github.com/vnathalye
10000 function relativeTimeMr(number
, withoutSuffix
, string
, isFuture
)
10003 if (withoutSuffix
) {
10005 case 's': output
= 'काही सेकंद'; break;
10006 case 'm': output
= 'एक मिनिट'; break;
10007 case 'mm': output
= '%d मिनिटे'; break;
10008 case 'h': output
= 'एक तास'; break;
10009 case 'hh': output
= '%d तास'; break;
10010 case 'd': output
= 'एक दिवस'; break;
10011 case 'dd': output
= '%d दिवस'; break;
10012 case 'M': output
= 'एक महिना'; break;
10013 case 'MM': output
= '%d महिने'; break;
10014 case 'y': output
= 'एक वर्ष'; break;
10015 case 'yy': output
= '%d वर्षे'; break;
10020 case 's': output
= 'काही सेकंदां'; break;
10021 case 'm': output
= 'एका मिनिटा'; break;
10022 case 'mm': output
= '%d मिनिटां'; break;
10023 case 'h': output
= 'एका तासा'; break;
10024 case 'hh': output
= '%d तासां'; break;
10025 case 'd': output
= 'एका दिवसा'; break;
10026 case 'dd': output
= '%d दिवसां'; break;
10027 case 'M': output
= 'एका महिन्या'; break;
10028 case 'MM': output
= '%d महिन्यां'; break;
10029 case 'y': output
= 'एका वर्षा'; break;
10030 case 'yy': output
= '%d वर्षां'; break;
10033 return output
.replace(/%d/i, number
);
10036 hooks
.defineLocale('mr', {
10037 months
: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
10038 monthsShort
: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
10039 monthsParseExact
: true,
10040 weekdays
: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
10041 weekdaysShort
: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
10042 weekdaysMin
: 'र_सो_मं_बु_गु_शु_श'.split('_'),
10044 LT
: 'A h:mm वाजता',
10045 LTS
: 'A h:mm:ss वाजता',
10047 LL
: 'D MMMM YYYY',
10048 LLL
: 'D MMMM YYYY, A h:mm वाजता',
10049 LLLL
: 'dddd, D MMMM YYYY, A h:mm वाजता'
10052 sameDay
: '[आज] LT',
10053 nextDay
: '[उद्या] LT',
10054 nextWeek
: 'dddd, LT',
10055 lastDay
: '[काल] LT',
10056 lastWeek
: '[मागील] dddd, LT',
10064 mm
: relativeTimeMr
,
10066 hh
: relativeTimeMr
,
10068 dd
: relativeTimeMr
,
10070 MM
: relativeTimeMr
,
10074 preparse: function (string
) {
10075 return string
.replace(/[१२३४५६७८९०]/g, function (match
) {
10076 return numberMap
$7[match
];
10079 postformat: function (string
) {
10080 return string
.replace(/\d/g, function (match
) {
10081 return symbolMap
$8[match
];
10084 meridiemParse
: /रात्री|सकाळी|दुपारी|सायंकाळी/,
10085 meridiemHour : function (hour
, meridiem
) {
10089 if (meridiem
=== 'रात्री') {
10090 return hour
< 4 ? hour
: hour
+ 12;
10091 } else if (meridiem
=== 'सकाळी') {
10093 } else if (meridiem
=== 'दुपारी') {
10094 return hour
>= 10 ? hour
: hour
+ 12;
10095 } else if (meridiem
=== 'सायंकाळी') {
10099 meridiem: function (hour
, minute
, isLower
) {
10102 } else if (hour
< 10) {
10104 } else if (hour
< 17) {
10106 } else if (hour
< 20) {
10113 dow
: 0, // Sunday is the first day of the week.
10114 doy
: 6 // The week that contains Jan 1st is the first week of the year.
10118 //! moment.js locale configuration
10119 //! locale : Malay [ms-my]
10120 //! note : DEPRECATED, the correct one is [ms]
10121 //! author : Weldan Jamili : https://github.com/weldan
10123 hooks
.defineLocale('ms-my', {
10124 months
: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
10125 monthsShort
: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
10126 weekdays
: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
10127 weekdaysShort
: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
10128 weekdaysMin
: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
10133 LL
: 'D MMMM YYYY',
10134 LLL
: 'D MMMM YYYY [pukul] HH.mm',
10135 LLLL
: 'dddd, D MMMM YYYY [pukul] HH.mm'
10137 meridiemParse
: /pagi|tengahari|petang|malam/,
10138 meridiemHour: function (hour
, meridiem
) {
10142 if (meridiem
=== 'pagi') {
10144 } else if (meridiem
=== 'tengahari') {
10145 return hour
>= 11 ? hour
: hour
+ 12;
10146 } else if (meridiem
=== 'petang' || meridiem
=== 'malam') {
10150 meridiem : function (hours
, minutes
, isLower
) {
10153 } else if (hours
< 15) {
10154 return 'tengahari';
10155 } else if (hours
< 19) {
10162 sameDay
: '[Hari ini pukul] LT',
10163 nextDay
: '[Esok pukul] LT',
10164 nextWeek
: 'dddd [pukul] LT',
10165 lastDay
: '[Kelmarin pukul] LT',
10166 lastWeek
: 'dddd [lepas pukul] LT',
10170 future
: 'dalam %s',
10171 past
: '%s yang lepas',
10172 s
: 'beberapa saat',
10185 dow
: 1, // Monday is the first day of the week.
10186 doy
: 7 // The week that contains Jan 1st is the first week of the year.
10190 //! moment.js locale configuration
10191 //! locale : Malay [ms]
10192 //! author : Weldan Jamili : https://github.com/weldan
10194 hooks
.defineLocale('ms', {
10195 months
: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
10196 monthsShort
: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
10197 weekdays
: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
10198 weekdaysShort
: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
10199 weekdaysMin
: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
10204 LL
: 'D MMMM YYYY',
10205 LLL
: 'D MMMM YYYY [pukul] HH.mm',
10206 LLLL
: 'dddd, D MMMM YYYY [pukul] HH.mm'
10208 meridiemParse
: /pagi|tengahari|petang|malam/,
10209 meridiemHour: function (hour
, meridiem
) {
10213 if (meridiem
=== 'pagi') {
10215 } else if (meridiem
=== 'tengahari') {
10216 return hour
>= 11 ? hour
: hour
+ 12;
10217 } else if (meridiem
=== 'petang' || meridiem
=== 'malam') {
10221 meridiem : function (hours
, minutes
, isLower
) {
10224 } else if (hours
< 15) {
10225 return 'tengahari';
10226 } else if (hours
< 19) {
10233 sameDay
: '[Hari ini pukul] LT',
10234 nextDay
: '[Esok pukul] LT',
10235 nextWeek
: 'dddd [pukul] LT',
10236 lastDay
: '[Kelmarin pukul] LT',
10237 lastWeek
: 'dddd [lepas pukul] LT',
10241 future
: 'dalam %s',
10242 past
: '%s yang lepas',
10243 s
: 'beberapa saat',
10256 dow
: 1, // Monday is the first day of the week.
10257 doy
: 7 // The week that contains Jan 1st is the first week of the year.
10261 //! moment.js locale configuration
10262 //! locale : Burmese [my]
10263 //! author : Squar team, mysquar.com
10264 //! author : David Rossellat : https://github.com/gholadr
10265 //! author : Tin Aung Lin : https://github.com/thanyawzinmin
10267 var symbolMap
$9 = {
10279 var numberMap
$8 = {
10292 hooks
.defineLocale('my', {
10293 months
: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
10294 monthsShort
: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
10295 weekdays
: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
10296 weekdaysShort
: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
10297 weekdaysMin
: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
10304 LLL
: 'D MMMM YYYY HH:mm',
10305 LLLL
: 'dddd D MMMM YYYY HH:mm'
10308 sameDay
: '[ယနေ.] LT [မှာ]',
10309 nextDay
: '[မနက်ဖြန်] LT [မှာ]',
10310 nextWeek
: 'dddd LT [မှာ]',
10311 lastDay
: '[မနေ.က] LT [မှာ]',
10312 lastWeek
: '[ပြီးခဲ့သော] dddd LT [မှာ]',
10316 future
: 'လာမည့် %s မှာ',
10317 past
: 'လွန်ခဲ့သော %s က',
10318 s
: 'စက္ကန်.အနည်းငယ်',
10330 preparse: function (string
) {
10331 return string
.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match
) {
10332 return numberMap
$8[match
];
10335 postformat: function (string
) {
10336 return string
.replace(/\d/g, function (match
) {
10337 return symbolMap
$9[match
];
10341 dow
: 1, // Monday is the first day of the week.
10342 doy
: 4 // The week that contains Jan 1st is the first week of the year.
10346 //! moment.js locale configuration
10347 //! locale : Norwegian Bokmål [nb]
10348 //! authors : Espen Hovlandsdal : https://github.com/rexxars
10349 //! Sigurd Gartmann : https://github.com/sigurdga
10351 hooks
.defineLocale('nb', {
10352 months
: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
10353 monthsShort
: 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
10354 monthsParseExact
: true,
10355 weekdays
: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
10356 weekdaysShort
: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
10357 weekdaysMin
: 'sø_ma_ti_on_to_fr_lø'.split('_'),
10358 weekdaysParseExact
: true,
10363 LL
: 'D. MMMM YYYY',
10364 LLL
: 'D. MMMM YYYY [kl.] HH:mm',
10365 LLLL
: 'dddd D. MMMM YYYY [kl.] HH:mm'
10368 sameDay
: '[i dag kl.] LT',
10369 nextDay
: '[i morgen kl.] LT',
10370 nextWeek
: 'dddd [kl.] LT',
10371 lastDay
: '[i går kl.] LT',
10372 lastWeek
: '[forrige] dddd [kl.] LT',
10378 s
: 'noen sekunder',
10380 mm
: '%d minutter',
10390 dayOfMonthOrdinalParse
: /\d{1,2}\./,
10393 dow
: 1, // Monday is the first day of the week.
10394 doy
: 4 // The week that contains Jan 4th is the first week of the year.
10398 //! moment.js locale configuration
10399 //! locale : Nepalese [ne]
10400 //! author : suvash : https://github.com/suvash
10402 var symbolMap
$10 = {
10414 var numberMap
$9 = {
10427 hooks
.defineLocale('ne', {
10428 months
: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
10429 monthsShort
: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
10430 monthsParseExact
: true,
10431 weekdays
: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
10432 weekdaysShort
: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
10433 weekdaysMin
: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
10434 weekdaysParseExact
: true,
10436 LT
: 'Aको h:mm बजे',
10437 LTS
: 'Aको h:mm:ss बजे',
10439 LL
: 'D MMMM YYYY',
10440 LLL
: 'D MMMM YYYY, Aको h:mm बजे',
10441 LLLL
: 'dddd, D MMMM YYYY, Aको h:mm बजे'
10443 preparse: function (string
) {
10444 return string
.replace(/[१२३४५६७८९०]/g, function (match
) {
10445 return numberMap
$9[match
];
10448 postformat: function (string
) {
10449 return string
.replace(/\d/g, function (match
) {
10450 return symbolMap
$10[match
];
10453 meridiemParse
: /राति|बिहान|दिउँसो|साँझ/,
10454 meridiemHour : function (hour
, meridiem
) {
10458 if (meridiem
=== 'राति') {
10459 return hour
< 4 ? hour
: hour
+ 12;
10460 } else if (meridiem
=== 'बिहान') {
10462 } else if (meridiem
=== 'दिउँसो') {
10463 return hour
>= 10 ? hour
: hour
+ 12;
10464 } else if (meridiem
=== 'साँझ') {
10468 meridiem : function (hour
, minute
, isLower
) {
10471 } else if (hour
< 12) {
10473 } else if (hour
< 16) {
10475 } else if (hour
< 20) {
10482 sameDay
: '[आज] LT',
10483 nextDay
: '[भोलि] LT',
10484 nextWeek
: '[आउँदो] dddd[,] LT',
10485 lastDay
: '[हिजो] LT',
10486 lastWeek
: '[गएको] dddd[,] LT',
10505 dow
: 0, // Sunday is the first day of the week.
10506 doy
: 6 // The week that contains Jan 1st is the first week of the year.
10510 //! moment.js locale configuration
10511 //! locale : Dutch (Belgium) [nl-be]
10512 //! author : Joris Röling : https://github.com/jorisroling
10513 //! author : Jacob Middag : https://github.com/middagj
10515 var monthsShortWithDots
$1 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_');
10516 var monthsShortWithoutDots
$1 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
10518 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];
10519 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;
10521 hooks
.defineLocale('nl-be', {
10522 months
: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
10523 monthsShort : function (m
, format
) {
10525 return monthsShortWithDots
$1;
10526 } else if (/-MMM-/.test(format
)) {
10527 return monthsShortWithoutDots
$1[m
.month()];
10529 return monthsShortWithDots
$1[m
.month()];
10533 monthsRegex
: monthsRegex
$1,
10534 monthsShortRegex
: monthsRegex
$1,
10535 monthsStrictRegex
: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
10536 monthsShortStrictRegex
: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
10538 monthsParse
: monthsParse
,
10539 longMonthsParse
: monthsParse
,
10540 shortMonthsParse
: monthsParse
,
10542 weekdays
: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
10543 weekdaysShort
: 'zo._ma._di._wo._do._vr._za.'.split('_'),
10544 weekdaysMin
: 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),
10545 weekdaysParseExact
: true,
10550 LL
: 'D MMMM YYYY',
10551 LLL
: 'D MMMM YYYY HH:mm',
10552 LLLL
: 'dddd D MMMM YYYY HH:mm'
10555 sameDay
: '[vandaag om] LT',
10556 nextDay
: '[morgen om] LT',
10557 nextWeek
: 'dddd [om] LT',
10558 lastDay
: '[gisteren om] LT',
10559 lastWeek
: '[afgelopen] dddd [om] LT',
10563 future
: 'over %s',
10564 past
: '%s geleden',
10565 s
: 'een paar seconden',
10577 dayOfMonthOrdinalParse
: /\d{1,2}(ste|de)/,
10578 ordinal : function (number
) {
10579 return number
+ ((number
=== 1 || number
=== 8 || number
>= 20) ? 'ste' : 'de');
10582 dow
: 1, // Monday is the first day of the week.
10583 doy
: 4 // The week that contains Jan 4th is the first week of the year.
10587 //! moment.js locale configuration
10588 //! locale : Dutch [nl]
10589 //! author : Joris Röling : https://github.com/jorisroling
10590 //! author : Jacob Middag : https://github.com/middagj
10592 var monthsShortWithDots
$2 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_');
10593 var monthsShortWithoutDots
$2 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
10595 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];
10596 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;
10598 hooks
.defineLocale('nl', {
10599 months
: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
10600 monthsShort : function (m
, format
) {
10602 return monthsShortWithDots
$2;
10603 } else if (/-MMM-/.test(format
)) {
10604 return monthsShortWithoutDots
$2[m
.month()];
10606 return monthsShortWithDots
$2[m
.month()];
10610 monthsRegex
: monthsRegex
$2,
10611 monthsShortRegex
: monthsRegex
$2,
10612 monthsStrictRegex
: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
10613 monthsShortStrictRegex
: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
10615 monthsParse
: monthsParse
$1,
10616 longMonthsParse
: monthsParse
$1,
10617 shortMonthsParse
: monthsParse
$1,
10619 weekdays
: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
10620 weekdaysShort
: 'zo._ma._di._wo._do._vr._za.'.split('_'),
10621 weekdaysMin
: 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),
10622 weekdaysParseExact
: true,
10627 LL
: 'D MMMM YYYY',
10628 LLL
: 'D MMMM YYYY HH:mm',
10629 LLLL
: 'dddd D MMMM YYYY HH:mm'
10632 sameDay
: '[vandaag om] LT',
10633 nextDay
: '[morgen om] LT',
10634 nextWeek
: 'dddd [om] LT',
10635 lastDay
: '[gisteren om] LT',
10636 lastWeek
: '[afgelopen] dddd [om] LT',
10640 future
: 'over %s',
10641 past
: '%s geleden',
10642 s
: 'een paar seconden',
10654 dayOfMonthOrdinalParse
: /\d{1,2}(ste|de)/,
10655 ordinal : function (number
) {
10656 return number
+ ((number
=== 1 || number
=== 8 || number
>= 20) ? 'ste' : 'de');
10659 dow
: 1, // Monday is the first day of the week.
10660 doy
: 4 // The week that contains Jan 4th is the first week of the year.
10664 //! moment.js locale configuration
10665 //! locale : Nynorsk [nn]
10666 //! author : https://github.com/mechuwind
10668 hooks
.defineLocale('nn', {
10669 months
: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
10670 monthsShort
: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
10671 weekdays
: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
10672 weekdaysShort
: 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
10673 weekdaysMin
: 'su_må_ty_on_to_fr_lø'.split('_'),
10678 LL
: 'D. MMMM YYYY',
10679 LLL
: 'D. MMMM YYYY [kl.] H:mm',
10680 LLLL
: 'dddd D. MMMM YYYY [kl.] HH:mm'
10683 sameDay
: '[I dag klokka] LT',
10684 nextDay
: '[I morgon klokka] LT',
10685 nextWeek
: 'dddd [klokka] LT',
10686 lastDay
: '[I går klokka] LT',
10687 lastWeek
: '[Føregåande] dddd [klokka] LT',
10693 s
: 'nokre sekund',
10705 dayOfMonthOrdinalParse
: /\d{1,2}\./,
10708 dow
: 1, // Monday is the first day of the week.
10709 doy
: 4 // The week that contains Jan 4th is the first week of the year.
10713 //! moment.js locale configuration
10714 //! locale : Punjabi (India) [pa-in]
10715 //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
10717 var symbolMap
$11 = {
10729 var numberMap
$10 = {
10742 hooks
.defineLocale('pa-in', {
10743 // There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi.
10744 months
: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
10745 monthsShort
: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
10746 weekdays
: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
10747 weekdaysShort
: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
10748 weekdaysMin
: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
10751 LTS
: 'A h:mm:ss ਵਜੇ',
10753 LL
: 'D MMMM YYYY',
10754 LLL
: 'D MMMM YYYY, A h:mm ਵਜੇ',
10755 LLLL
: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
10758 sameDay
: '[ਅਜ] LT',
10759 nextDay
: '[ਕਲ] LT',
10760 nextWeek
: 'dddd, LT',
10761 lastDay
: '[ਕਲ] LT',
10762 lastWeek
: '[ਪਿਛਲੇ] dddd, LT',
10766 future
: '%s ਵਿੱਚ',
10780 preparse: function (string
) {
10781 return string
.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match
) {
10782 return numberMap
$10[match
];
10785 postformat: function (string
) {
10786 return string
.replace(/\d/g, function (match
) {
10787 return symbolMap
$11[match
];
10790 // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
10791 // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
10792 meridiemParse
: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
10793 meridiemHour : function (hour
, meridiem
) {
10797 if (meridiem
=== 'ਰਾਤ') {
10798 return hour
< 4 ? hour
: hour
+ 12;
10799 } else if (meridiem
=== 'ਸਵੇਰ') {
10801 } else if (meridiem
=== 'ਦੁਪਹਿਰ') {
10802 return hour
>= 10 ? hour
: hour
+ 12;
10803 } else if (meridiem
=== 'ਸ਼ਾਮ') {
10807 meridiem : function (hour
, minute
, isLower
) {
10810 } else if (hour
< 10) {
10812 } else if (hour
< 17) {
10814 } else if (hour
< 20) {
10821 dow
: 0, // Sunday is the first day of the week.
10822 doy
: 6 // The week that contains Jan 1st is the first week of the year.
10826 //! moment.js locale configuration
10827 //! locale : Polish [pl]
10828 //! author : Rafal Hirsz : https://github.com/evoL
10830 var monthsNominative
= 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_');
10831 var monthsSubjective
= 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
10832 function plural
$3(n
) {
10833 return (n
% 10 < 5) && (n
% 10 > 1) && ((~~(n
/ 10) % 10) !== 1);
10835 function translate
$7(number
, withoutSuffix
, key
) {
10836 var result
= number
+ ' ';
10839 return withoutSuffix
? 'minuta' : 'minutę';
10841 return result
+ (plural
$3(number
) ? 'minuty' : 'minut');
10843 return withoutSuffix
? 'godzina' : 'godzinę';
10845 return result
+ (plural
$3(number
) ? 'godziny' : 'godzin');
10847 return result
+ (plural
$3(number
) ? 'miesiące' : 'miesięcy');
10849 return result
+ (plural
$3(number
) ? 'lata' : 'lat');
10853 hooks
.defineLocale('pl', {
10854 months : function (momentToFormat
, format
) {
10855 if (!momentToFormat
) {
10856 return monthsNominative
;
10857 } else if (format
=== '') {
10858 // Hack: if format empty we know this is used to generate
10859 // RegExp by moment. Give then back both valid forms of months
10860 // in RegExp ready format.
10861 return '(' + monthsSubjective
[momentToFormat
.month()] + '|' + monthsNominative
[momentToFormat
.month()] + ')';
10862 } else if (/D MMMM/.test(format
)) {
10863 return monthsSubjective
[momentToFormat
.month()];
10865 return monthsNominative
[momentToFormat
.month()];
10868 monthsShort
: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
10869 weekdays
: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
10870 weekdaysShort
: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
10871 weekdaysMin
: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
10876 LL
: 'D MMMM YYYY',
10877 LLL
: 'D MMMM YYYY HH:mm',
10878 LLLL
: 'dddd, D MMMM YYYY HH:mm'
10881 sameDay
: '[Dziś o] LT',
10882 nextDay
: '[Jutro o] LT',
10883 nextWeek
: '[W] dddd [o] LT',
10884 lastDay
: '[Wczoraj o] LT',
10885 lastWeek: function () {
10886 switch (this.day()) {
10888 return '[W zeszłą niedzielę o] LT';
10890 return '[W zeszłą środę o] LT';
10892 return '[W zeszłą sobotę o] LT';
10894 return '[W zeszły] dddd [o] LT';
10902 s
: 'kilka sekund',
10914 dayOfMonthOrdinalParse
: /\d{1,2}\./,
10917 dow
: 1, // Monday is the first day of the week.
10918 doy
: 4 // The week that contains Jan 4th is the first week of the year.
10922 //! moment.js locale configuration
10923 //! locale : Portuguese (Brazil) [pt-br]
10924 //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
10926 hooks
.defineLocale('pt-br', {
10927 months
: 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
10928 monthsShort
: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
10929 weekdays
: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
10930 weekdaysShort
: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
10931 weekdaysMin
: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
10932 weekdaysParseExact
: true,
10937 LL
: 'D [de] MMMM [de] YYYY',
10938 LLL
: 'D [de] MMMM [de] YYYY [às] HH:mm',
10939 LLLL
: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
10942 sameDay
: '[Hoje às] LT',
10943 nextDay
: '[Amanhã às] LT',
10944 nextWeek
: 'dddd [às] LT',
10945 lastDay
: '[Ontem às] LT',
10946 lastWeek: function () {
10947 return (this.day() === 0 || this.day() === 6) ?
10948 '[Último] dddd [às] LT' : // Saturday + Sunday
10949 '[Última] dddd [às] LT'; // Monday - Friday
10956 s
: 'poucos segundos',
10968 dayOfMonthOrdinalParse
: /\d{1,2}º/,
10972 //! moment.js locale configuration
10973 //! locale : Portuguese [pt]
10974 //! author : Jefferson : https://github.com/jalex79
10976 hooks
.defineLocale('pt', {
10977 months
: 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
10978 monthsShort
: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
10979 weekdays
: 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),
10980 weekdaysShort
: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
10981 weekdaysMin
: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
10982 weekdaysParseExact
: true,
10987 LL
: 'D [de] MMMM [de] YYYY',
10988 LLL
: 'D [de] MMMM [de] YYYY HH:mm',
10989 LLLL
: 'dddd, D [de] MMMM [de] YYYY HH:mm'
10992 sameDay
: '[Hoje às] LT',
10993 nextDay
: '[Amanhã às] LT',
10994 nextWeek
: 'dddd [às] LT',
10995 lastDay
: '[Ontem às] LT',
10996 lastWeek: function () {
10997 return (this.day() === 0 || this.day() === 6) ?
10998 '[Último] dddd [às] LT' : // Saturday + Sunday
10999 '[Última] dddd [às] LT'; // Monday - Friday
11018 dayOfMonthOrdinalParse
: /\d{1,2}º/,
11021 dow
: 1, // Monday is the first day of the week.
11022 doy
: 4 // The week that contains Jan 4th is the first week of the year.
11026 //! moment.js locale configuration
11027 //! locale : Romanian [ro]
11028 //! author : Vlad Gurdiga : https://github.com/gurdiga
11029 //! author : Valentin Agachi : https://github.com/avaly
11031 function relativeTimeWithPlural
$2(number
, withoutSuffix
, key
) {
11040 if (number
% 100 >= 20 || (number
>= 100 && number
% 100 === 0)) {
11041 separator
= ' de ';
11043 return number
+ separator
+ format
[key
];
11046 hooks
.defineLocale('ro', {
11047 months
: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
11048 monthsShort
: 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
11049 monthsParseExact
: true,
11050 weekdays
: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
11051 weekdaysShort
: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
11052 weekdaysMin
: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
11057 LL
: 'D MMMM YYYY',
11058 LLL
: 'D MMMM YYYY H:mm',
11059 LLLL
: 'dddd, D MMMM YYYY H:mm'
11062 sameDay
: '[azi la] LT',
11063 nextDay
: '[mâine la] LT',
11064 nextWeek
: 'dddd [la] LT',
11065 lastDay
: '[ieri la] LT',
11066 lastWeek
: '[fosta] dddd [la] LT',
11070 future
: 'peste %s',
11071 past
: '%s în urmă',
11072 s
: 'câteva secunde',
11074 mm
: relativeTimeWithPlural
$2,
11076 hh
: relativeTimeWithPlural
$2,
11078 dd
: relativeTimeWithPlural
$2,
11080 MM
: relativeTimeWithPlural
$2,
11082 yy
: relativeTimeWithPlural
$2
11085 dow
: 1, // Monday is the first day of the week.
11086 doy
: 7 // The week that contains Jan 1st is the first week of the year.
11090 //! moment.js locale configuration
11091 //! locale : Russian [ru]
11092 //! author : Viktorminator : https://github.com/Viktorminator
11093 //! Author : Menelion Elensúle : https://github.com/Oire
11094 //! author : Коренберг Марк : https://github.com/socketpair
11096 function plural
$4(word
, num
) {
11097 var forms
= word
.split('_');
11098 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]);
11100 function relativeTimeWithPlural
$3(number
, withoutSuffix
, key
) {
11102 'mm': withoutSuffix
? 'минута_минуты_минут' : 'минуту_минуты_минут',
11103 'hh': 'час_часа_часов',
11104 'dd': 'день_дня_дней',
11105 'MM': 'месяц_месяца_месяцев',
11106 'yy': 'год_года_лет'
11109 return withoutSuffix
? 'минута' : 'минуту';
11112 return number
+ ' ' + plural
$4(format
[key
], +number
);
11115 var monthsParse
$2 = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
11117 // http://new.gramota.ru/spravka/rules/139-prop : § 103
11118 // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
11119 // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
11120 hooks
.defineLocale('ru', {
11122 format
: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
11123 standalone
: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
11126 // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ?
11127 format
: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
11128 standalone
: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
11131 standalone
: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
11132 format
: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
11133 isFormat
: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/
11135 weekdaysShort
: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
11136 weekdaysMin
: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
11137 monthsParse
: monthsParse
$2,
11138 longMonthsParse
: monthsParse
$2,
11139 shortMonthsParse
: monthsParse
$2,
11141 // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
11142 monthsRegex
: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
11144 // копия предыдущего
11145 monthsShortRegex
: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
11147 // полные названия с падежами
11148 monthsStrictRegex
: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
11150 // Выражение, которое соотвествует только сокращённым формам
11151 monthsShortStrictRegex
: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
11156 LL
: 'D MMMM YYYY г.',
11157 LLL
: 'D MMMM YYYY г., HH:mm',
11158 LLLL
: 'dddd, D MMMM YYYY г., HH:mm'
11161 sameDay
: '[Сегодня в] LT',
11162 nextDay
: '[Завтра в] LT',
11163 lastDay
: '[Вчера в] LT',
11164 nextWeek: function (now
) {
11165 if (now
.week() !== this.week()) {
11166 switch (this.day()) {
11168 return '[В следующее] dddd [в] LT';
11172 return '[В следующий] dddd [в] LT';
11176 return '[В следующую] dddd [в] LT';
11179 if (this.day() === 2) {
11180 return '[Во] dddd [в] LT';
11182 return '[В] dddd [в] LT';
11186 lastWeek: function (now
) {
11187 if (now
.week() !== this.week()) {
11188 switch (this.day()) {
11190 return '[В прошлое] dddd [в] LT';
11194 return '[В прошлый] dddd [в] LT';
11198 return '[В прошлую] dddd [в] LT';
11201 if (this.day() === 2) {
11202 return '[Во] dddd [в] LT';
11204 return '[В] dddd [в] LT';
11211 future
: 'через %s',
11213 s
: 'несколько секунд',
11214 m
: relativeTimeWithPlural
$3,
11215 mm
: relativeTimeWithPlural
$3,
11217 hh
: relativeTimeWithPlural
$3,
11219 dd
: relativeTimeWithPlural
$3,
11221 MM
: relativeTimeWithPlural
$3,
11223 yy
: relativeTimeWithPlural
$3
11225 meridiemParse
: /ночи|утра|дня|вечера/i,
11226 isPM : function (input
) {
11227 return /^(дня|вечера)$/.test(input
);
11229 meridiem : function (hour
, minute
, isLower
) {
11232 } else if (hour
< 12) {
11234 } else if (hour
< 17) {
11240 dayOfMonthOrdinalParse
: /\d{1,2}-(й|го|я)/,
11241 ordinal: function (number
, period
) {
11246 return number
+ '-й';
11248 return number
+ '-го';
11251 return number
+ '-я';
11257 dow
: 1, // Monday is the first day of the week.
11258 doy
: 7 // The week that contains Jan 1st is the first week of the year.
11262 //! moment.js locale configuration
11263 //! locale : Sindhi [sd]
11264 //! author : Narain Sagar : https://github.com/narainsagar
11290 hooks
.defineLocale('sd', {
11292 monthsShort
: months
$6,
11294 weekdaysShort
: days
$1,
11295 weekdaysMin
: days
$1,
11300 LL
: 'D MMMM YYYY',
11301 LLL
: 'D MMMM YYYY HH:mm',
11302 LLLL
: 'dddd، D MMMM YYYY HH:mm'
11304 meridiemParse
: /صبح|شام/,
11305 isPM : function (input
) {
11306 return 'شام' === input
;
11308 meridiem : function (hour
, minute
, isLower
) {
11315 sameDay
: '[اڄ] LT',
11316 nextDay
: '[سڀاڻي] LT',
11317 nextWeek
: 'dddd [اڳين هفتي تي] LT',
11318 lastDay
: '[ڪالهه] LT',
11319 lastWeek
: '[گزريل هفتي] dddd [تي] LT',
11337 preparse: function (string
) {
11338 return string
.replace(/،/g, ',');
11340 postformat: function (string
) {
11341 return string
.replace(/,/g
, '،');
11344 dow
: 1, // Monday is the first day of the week.
11345 doy
: 4 // The week that contains Jan 4th is the first week of the year.
11349 //! moment.js locale configuration
11350 //! locale : Northern Sami [se]
11351 //! authors : Bård Rolstad Henriksen : https://github.com/karamell
11354 hooks
.defineLocale('se', {
11355 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('_'),
11356 monthsShort
: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
11357 weekdays
: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
11358 weekdaysShort
: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
11359 weekdaysMin
: 's_v_m_g_d_b_L'.split('_'),
11364 LL
: 'MMMM D. [b.] YYYY',
11365 LLL
: 'MMMM D. [b.] YYYY [ti.] HH:mm',
11366 LLLL
: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
11369 sameDay
: '[otne ti] LT',
11370 nextDay
: '[ihttin ti] LT',
11371 nextWeek
: 'dddd [ti] LT',
11372 lastDay
: '[ikte ti] LT',
11373 lastWeek
: '[ovddit] dddd [ti] LT',
11377 future
: '%s geažes',
11379 s
: 'moadde sekunddat',
11380 m
: 'okta minuhta',
11381 mm
: '%d minuhtat',
11385 dd
: '%d beaivvit',
11391 dayOfMonthOrdinalParse
: /\d{1,2}\./,
11394 dow
: 1, // Monday is the first day of the week.
11395 doy
: 4 // The week that contains Jan 4th is the first week of the year.
11399 //! moment.js locale configuration
11400 //! locale : Sinhalese [si]
11401 //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
11404 hooks
.defineLocale('si', {
11405 months
: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
11406 monthsShort
: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
11407 weekdays
: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
11408 weekdaysShort
: 'ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන'.split('_'),
11409 weekdaysMin
: 'ඉ_ස_අ_බ_බ්ර_සි_සෙ'.split('_'),
11410 weekdaysParseExact
: true,
11415 LL
: 'YYYY MMMM D',
11416 LLL
: 'YYYY MMMM D, a h:mm',
11417 LLLL
: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
11420 sameDay
: '[අද] LT[ට]',
11421 nextDay
: '[හෙට] LT[ට]',
11422 nextWeek
: 'dddd LT[ට]',
11423 lastDay
: '[ඊයේ] LT[ට]',
11424 lastWeek
: '[පසුගිය] dddd LT[ට]',
11430 s
: 'තත්පර කිහිපය',
11432 mm
: 'මිනිත්තු %d',
11442 dayOfMonthOrdinalParse
: /\d{1,2} වැනි/,
11443 ordinal : function (number
) {
11444 return number
+ ' වැනි';
11446 meridiemParse
: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
11447 isPM : function (input
) {
11448 return input
=== 'ප.ව.' || input
=== 'පස් වරු';
11450 meridiem : function (hours
, minutes
, isLower
) {
11452 return isLower
? 'ප.ව.' : 'පස් වරු';
11454 return isLower
? 'පෙ.ව.' : 'පෙර වරු';
11459 //! moment.js locale configuration
11460 //! locale : Slovak [sk]
11461 //! author : Martin Minka : https://github.com/k2s
11462 //! based on work of petrbela : https://github.com/petrbela
11464 var months
$7 = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_');
11465 var monthsShort
$4 = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
11466 function plural
$5(n
) {
11467 return (n
> 1) && (n
< 5);
11469 function translate
$8(number
, withoutSuffix
, key
, isFuture
) {
11470 var result
= number
+ ' ';
11472 case 's': // a few seconds / in a few seconds / a few seconds ago
11473 return (withoutSuffix
|| isFuture
) ? 'pár sekúnd' : 'pár sekundami';
11474 case 'm': // a minute / in a minute / a minute ago
11475 return withoutSuffix
? 'minúta' : (isFuture
? 'minútu' : 'minútou');
11476 case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
11477 if (withoutSuffix
|| isFuture
) {
11478 return result
+ (plural
$5(number
) ? 'minúty' : 'minút');
11480 return result
+ 'minútami';
11483 case 'h': // an hour / in an hour / an hour ago
11484 return withoutSuffix
? 'hodina' : (isFuture
? 'hodinu' : 'hodinou');
11485 case 'hh': // 9 hours / in 9 hours / 9 hours ago
11486 if (withoutSuffix
|| isFuture
) {
11487 return result
+ (plural
$5(number
) ? 'hodiny' : 'hodín');
11489 return result
+ 'hodinami';
11492 case 'd': // a day / in a day / a day ago
11493 return (withoutSuffix
|| isFuture
) ? 'deň' : 'dňom';
11494 case 'dd': // 9 days / in 9 days / 9 days ago
11495 if (withoutSuffix
|| isFuture
) {
11496 return result
+ (plural
$5(number
) ? 'dni' : 'dní');
11498 return result
+ 'dňami';
11501 case 'M': // a month / in a month / a month ago
11502 return (withoutSuffix
|| isFuture
) ? 'mesiac' : 'mesiacom';
11503 case 'MM': // 9 months / in 9 months / 9 months ago
11504 if (withoutSuffix
|| isFuture
) {
11505 return result
+ (plural
$5(number
) ? 'mesiace' : 'mesiacov');
11507 return result
+ 'mesiacmi';
11510 case 'y': // a year / in a year / a year ago
11511 return (withoutSuffix
|| isFuture
) ? 'rok' : 'rokom';
11512 case 'yy': // 9 years / in 9 years / 9 years ago
11513 if (withoutSuffix
|| isFuture
) {
11514 return result
+ (plural
$5(number
) ? 'roky' : 'rokov');
11516 return result
+ 'rokmi';
11522 hooks
.defineLocale('sk', {
11524 monthsShort
: monthsShort
$4,
11525 weekdays
: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
11526 weekdaysShort
: 'ne_po_ut_st_št_pi_so'.split('_'),
11527 weekdaysMin
: 'ne_po_ut_st_št_pi_so'.split('_'),
11532 LL
: 'D. MMMM YYYY',
11533 LLL
: 'D. MMMM YYYY H:mm',
11534 LLLL
: 'dddd D. MMMM YYYY H:mm'
11537 sameDay
: '[dnes o] LT',
11538 nextDay
: '[zajtra o] LT',
11539 nextWeek: function () {
11540 switch (this.day()) {
11542 return '[v nedeľu o] LT';
11545 return '[v] dddd [o] LT';
11547 return '[v stredu o] LT';
11549 return '[vo štvrtok o] LT';
11551 return '[v piatok o] LT';
11553 return '[v sobotu o] LT';
11556 lastDay
: '[včera o] LT',
11557 lastWeek: function () {
11558 switch (this.day()) {
11560 return '[minulú nedeľu o] LT';
11563 return '[minulý] dddd [o] LT';
11565 return '[minulú stredu o] LT';
11568 return '[minulý] dddd [o] LT';
11570 return '[minulú sobotu o] LT';
11590 dayOfMonthOrdinalParse
: /\d{1,2}\./,
11593 dow
: 1, // Monday is the first day of the week.
11594 doy
: 4 // The week that contains Jan 4th is the first week of the year.
11598 //! moment.js locale configuration
11599 //! locale : Slovenian [sl]
11600 //! author : Robert Sedovšek : https://github.com/sedovsek
11602 function processRelativeTime
$6(number
, withoutSuffix
, key
, isFuture
) {
11603 var result
= number
+ ' ';
11606 return withoutSuffix
|| isFuture
? 'nekaj sekund' : 'nekaj sekundami';
11608 return withoutSuffix
? 'ena minuta' : 'eno minuto';
11610 if (number
=== 1) {
11611 result
+= withoutSuffix
? 'minuta' : 'minuto';
11612 } else if (number
=== 2) {
11613 result
+= withoutSuffix
|| isFuture
? 'minuti' : 'minutama';
11614 } else if (number
< 5) {
11615 result
+= withoutSuffix
|| isFuture
? 'minute' : 'minutami';
11617 result
+= withoutSuffix
|| isFuture
? 'minut' : 'minutami';
11621 return withoutSuffix
? 'ena ura' : 'eno uro';
11623 if (number
=== 1) {
11624 result
+= withoutSuffix
? 'ura' : 'uro';
11625 } else if (number
=== 2) {
11626 result
+= withoutSuffix
|| isFuture
? 'uri' : 'urama';
11627 } else if (number
< 5) {
11628 result
+= withoutSuffix
|| isFuture
? 'ure' : 'urami';
11630 result
+= withoutSuffix
|| isFuture
? 'ur' : 'urami';
11634 return withoutSuffix
|| isFuture
? 'en dan' : 'enim dnem';
11636 if (number
=== 1) {
11637 result
+= withoutSuffix
|| isFuture
? 'dan' : 'dnem';
11638 } else if (number
=== 2) {
11639 result
+= withoutSuffix
|| isFuture
? 'dni' : 'dnevoma';
11641 result
+= withoutSuffix
|| isFuture
? 'dni' : 'dnevi';
11645 return withoutSuffix
|| isFuture
? 'en mesec' : 'enim mesecem';
11647 if (number
=== 1) {
11648 result
+= withoutSuffix
|| isFuture
? 'mesec' : 'mesecem';
11649 } else if (number
=== 2) {
11650 result
+= withoutSuffix
|| isFuture
? 'meseca' : 'mesecema';
11651 } else if (number
< 5) {
11652 result
+= withoutSuffix
|| isFuture
? 'mesece' : 'meseci';
11654 result
+= withoutSuffix
|| isFuture
? 'mesecev' : 'meseci';
11658 return withoutSuffix
|| isFuture
? 'eno leto' : 'enim letom';
11660 if (number
=== 1) {
11661 result
+= withoutSuffix
|| isFuture
? 'leto' : 'letom';
11662 } else if (number
=== 2) {
11663 result
+= withoutSuffix
|| isFuture
? 'leti' : 'letoma';
11664 } else if (number
< 5) {
11665 result
+= withoutSuffix
|| isFuture
? 'leta' : 'leti';
11667 result
+= withoutSuffix
|| isFuture
? 'let' : 'leti';
11673 hooks
.defineLocale('sl', {
11674 months
: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
11675 monthsShort
: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
11676 monthsParseExact
: true,
11677 weekdays
: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
11678 weekdaysShort
: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
11679 weekdaysMin
: 'ne_po_to_sr_če_pe_so'.split('_'),
11680 weekdaysParseExact
: true,
11685 LL
: 'D. MMMM YYYY',
11686 LLL
: 'D. MMMM YYYY H:mm',
11687 LLLL
: 'dddd, D. MMMM YYYY H:mm'
11690 sameDay
: '[danes ob] LT',
11691 nextDay
: '[jutri ob] LT',
11693 nextWeek : function () {
11694 switch (this.day()) {
11696 return '[v] [nedeljo] [ob] LT';
11698 return '[v] [sredo] [ob] LT';
11700 return '[v] [soboto] [ob] LT';
11705 return '[v] dddd [ob] LT';
11708 lastDay
: '[včeraj ob] LT',
11709 lastWeek : function () {
11710 switch (this.day()) {
11712 return '[prejšnjo] [nedeljo] [ob] LT';
11714 return '[prejšnjo] [sredo] [ob] LT';
11716 return '[prejšnjo] [soboto] [ob] LT';
11721 return '[prejšnji] dddd [ob] LT';
11729 s
: processRelativeTime
$6,
11730 m
: processRelativeTime
$6,
11731 mm
: processRelativeTime
$6,
11732 h
: processRelativeTime
$6,
11733 hh
: processRelativeTime
$6,
11734 d
: processRelativeTime
$6,
11735 dd
: processRelativeTime
$6,
11736 M
: processRelativeTime
$6,
11737 MM
: processRelativeTime
$6,
11738 y
: processRelativeTime
$6,
11739 yy
: processRelativeTime
$6
11741 dayOfMonthOrdinalParse
: /\d{1,2}\./,
11744 dow
: 1, // Monday is the first day of the week.
11745 doy
: 7 // The week that contains Jan 1st is the first week of the year.
11749 //! moment.js locale configuration
11750 //! locale : Albanian [sq]
11751 //! author : Flakërim Ismani : https://github.com/flakerimi
11752 //! author : Menelion Elensúle : https://github.com/Oire
11753 //! author : Oerd Cukalla : https://github.com/oerd
11755 hooks
.defineLocale('sq', {
11756 months
: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
11757 monthsShort
: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
11758 weekdays
: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
11759 weekdaysShort
: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
11760 weekdaysMin
: 'D_H_Ma_Më_E_P_Sh'.split('_'),
11761 weekdaysParseExact
: true,
11762 meridiemParse
: /PD|MD/,
11763 isPM: function (input
) {
11764 return input
.charAt(0) === 'M';
11766 meridiem : function (hours
, minutes
, isLower
) {
11767 return hours
< 12 ? 'PD' : 'MD';
11773 LL
: 'D MMMM YYYY',
11774 LLL
: 'D MMMM YYYY HH:mm',
11775 LLLL
: 'dddd, D MMMM YYYY HH:mm'
11778 sameDay
: '[Sot në] LT',
11779 nextDay
: '[Nesër në] LT',
11780 nextWeek
: 'dddd [në] LT',
11781 lastDay
: '[Dje në] LT',
11782 lastWeek
: 'dddd [e kaluar në] LT',
11787 past
: '%s më parë',
11788 s
: 'disa sekonda',
11800 dayOfMonthOrdinalParse
: /\d{1,2}\./,
11803 dow
: 1, // Monday is the first day of the week.
11804 doy
: 4 // The week that contains Jan 4th is the first week of the year.
11808 //! moment.js locale configuration
11809 //! locale : Serbian Cyrillic [sr-cyrl]
11810 //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
11812 var translator
$1 = {
11813 words
: { //Different grammatical cases
11814 m
: ['један минут', 'једне минуте'],
11815 mm
: ['минут', 'минуте', 'минута'],
11816 h
: ['један сат', 'једног сата'],
11817 hh
: ['сат', 'сата', 'сати'],
11818 dd
: ['дан', 'дана', 'дана'],
11819 MM
: ['месец', 'месеца', 'месеци'],
11820 yy
: ['година', 'године', 'година']
11822 correctGrammaticalCase: function (number
, wordKey
) {
11823 return number
=== 1 ? wordKey
[0] : (number
>= 2 && number
<= 4 ? wordKey
[1] : wordKey
[2]);
11825 translate: function (number
, withoutSuffix
, key
) {
11826 var wordKey
= translator
$1.words
[key
];
11827 if (key
.length
=== 1) {
11828 return withoutSuffix
? wordKey
[0] : wordKey
[1];
11830 return number
+ ' ' + translator
$1.correctGrammaticalCase(number
, wordKey
);
11835 hooks
.defineLocale('sr-cyrl', {
11836 months
: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
11837 monthsShort
: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
11838 monthsParseExact
: true,
11839 weekdays
: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
11840 weekdaysShort
: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
11841 weekdaysMin
: 'не_по_ут_ср_че_пе_су'.split('_'),
11842 weekdaysParseExact
: true,
11847 LL
: 'D. MMMM YYYY',
11848 LLL
: 'D. MMMM YYYY H:mm',
11849 LLLL
: 'dddd, D. MMMM YYYY H:mm'
11852 sameDay
: '[данас у] LT',
11853 nextDay
: '[сутра у] LT',
11854 nextWeek: function () {
11855 switch (this.day()) {
11857 return '[у] [недељу] [у] LT';
11859 return '[у] [среду] [у] LT';
11861 return '[у] [суботу] [у] LT';
11866 return '[у] dddd [у] LT';
11869 lastDay
: '[јуче у] LT',
11870 lastWeek : function () {
11871 var lastWeekDays
= [
11872 '[прошле] [недеље] [у] LT',
11873 '[прошлог] [понедељка] [у] LT',
11874 '[прошлог] [уторка] [у] LT',
11875 '[прошле] [среде] [у] LT',
11876 '[прошлог] [четвртка] [у] LT',
11877 '[прошлог] [петка] [у] LT',
11878 '[прошле] [суботе] [у] LT'
11880 return lastWeekDays
[this.day()];
11887 s
: 'неколико секунди',
11888 m
: translator
$1.translate
,
11889 mm
: translator
$1.translate
,
11890 h
: translator
$1.translate
,
11891 hh
: translator
$1.translate
,
11893 dd
: translator
$1.translate
,
11895 MM
: translator
$1.translate
,
11897 yy
: translator
$1.translate
11899 dayOfMonthOrdinalParse
: /\d{1,2}\./,
11902 dow
: 1, // Monday is the first day of the week.
11903 doy
: 7 // The week that contains Jan 1st is the first week of the year.
11907 //! moment.js locale configuration
11908 //! locale : Serbian [sr]
11909 //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
11911 var translator
$2 = {
11912 words
: { //Different grammatical cases
11913 m
: ['jedan minut', 'jedne minute'],
11914 mm
: ['minut', 'minute', 'minuta'],
11915 h
: ['jedan sat', 'jednog sata'],
11916 hh
: ['sat', 'sata', 'sati'],
11917 dd
: ['dan', 'dana', 'dana'],
11918 MM
: ['mesec', 'meseca', 'meseci'],
11919 yy
: ['godina', 'godine', 'godina']
11921 correctGrammaticalCase: function (number
, wordKey
) {
11922 return number
=== 1 ? wordKey
[0] : (number
>= 2 && number
<= 4 ? wordKey
[1] : wordKey
[2]);
11924 translate: function (number
, withoutSuffix
, key
) {
11925 var wordKey
= translator
$2.words
[key
];
11926 if (key
.length
=== 1) {
11927 return withoutSuffix
? wordKey
[0] : wordKey
[1];
11929 return number
+ ' ' + translator
$2.correctGrammaticalCase(number
, wordKey
);
11934 hooks
.defineLocale('sr', {
11935 months
: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
11936 monthsShort
: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
11937 monthsParseExact
: true,
11938 weekdays
: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
11939 weekdaysShort
: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
11940 weekdaysMin
: 'ne_po_ut_sr_če_pe_su'.split('_'),
11941 weekdaysParseExact
: true,
11946 LL
: 'D. MMMM YYYY',
11947 LLL
: 'D. MMMM YYYY H:mm',
11948 LLLL
: 'dddd, D. MMMM YYYY H:mm'
11951 sameDay
: '[danas u] LT',
11952 nextDay
: '[sutra u] LT',
11953 nextWeek: function () {
11954 switch (this.day()) {
11956 return '[u] [nedelju] [u] LT';
11958 return '[u] [sredu] [u] LT';
11960 return '[u] [subotu] [u] LT';
11965 return '[u] dddd [u] LT';
11968 lastDay
: '[juče u] LT',
11969 lastWeek : function () {
11970 var lastWeekDays
= [
11971 '[prošle] [nedelje] [u] LT',
11972 '[prošlog] [ponedeljka] [u] LT',
11973 '[prošlog] [utorka] [u] LT',
11974 '[prošle] [srede] [u] LT',
11975 '[prošlog] [četvrtka] [u] LT',
11976 '[prošlog] [petka] [u] LT',
11977 '[prošle] [subote] [u] LT'
11979 return lastWeekDays
[this.day()];
11986 s
: 'nekoliko sekundi',
11987 m
: translator
$2.translate
,
11988 mm
: translator
$2.translate
,
11989 h
: translator
$2.translate
,
11990 hh
: translator
$2.translate
,
11992 dd
: translator
$2.translate
,
11994 MM
: translator
$2.translate
,
11996 yy
: translator
$2.translate
11998 dayOfMonthOrdinalParse
: /\d{1,2}\./,
12001 dow
: 1, // Monday is the first day of the week.
12002 doy
: 7 // The week that contains Jan 1st is the first week of the year.
12006 //! moment.js locale configuration
12007 //! locale : siSwati [ss]
12008 //! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
12011 hooks
.defineLocale('ss', {
12012 months
: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
12013 monthsShort
: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
12014 weekdays
: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
12015 weekdaysShort
: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
12016 weekdaysMin
: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
12017 weekdaysParseExact
: true,
12022 LL
: 'D MMMM YYYY',
12023 LLL
: 'D MMMM YYYY h:mm A',
12024 LLLL
: 'dddd, D MMMM YYYY h:mm A'
12027 sameDay
: '[Namuhla nga] LT',
12028 nextDay
: '[Kusasa nga] LT',
12029 nextWeek
: 'dddd [nga] LT',
12030 lastDay
: '[Itolo nga] LT',
12031 lastWeek
: 'dddd [leliphelile] [nga] LT',
12036 past
: 'wenteka nga %s',
12037 s
: 'emizuzwana lomcane',
12043 dd
: '%d emalanga',
12045 MM
: '%d tinyanga',
12049 meridiemParse
: /ekuseni|emini|entsambama|ebusuku/,
12050 meridiem : function (hours
, minutes
, isLower
) {
12053 } else if (hours
< 15) {
12055 } else if (hours
< 19) {
12056 return 'entsambama';
12061 meridiemHour : function (hour
, meridiem
) {
12065 if (meridiem
=== 'ekuseni') {
12067 } else if (meridiem
=== 'emini') {
12068 return hour
>= 11 ? hour
: hour
+ 12;
12069 } else if (meridiem
=== 'entsambama' || meridiem
=== 'ebusuku') {
12076 dayOfMonthOrdinalParse
: /\d{1,2}/,
12079 dow
: 1, // Monday is the first day of the week.
12080 doy
: 4 // The week that contains Jan 4th is the first week of the year.
12084 //! moment.js locale configuration
12085 //! locale : Swedish [sv]
12086 //! author : Jens Alm : https://github.com/ulmus
12088 hooks
.defineLocale('sv', {
12089 months
: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
12090 monthsShort
: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
12091 weekdays
: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
12092 weekdaysShort
: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
12093 weekdaysMin
: 'sö_må_ti_on_to_fr_lö'.split('_'),
12098 LL
: 'D MMMM YYYY',
12099 LLL
: 'D MMMM YYYY [kl.] HH:mm',
12100 LLLL
: 'dddd D MMMM YYYY [kl.] HH:mm',
12101 lll
: 'D MMM YYYY HH:mm',
12102 llll
: 'ddd D MMM YYYY HH:mm'
12105 sameDay
: '[Idag] LT',
12106 nextDay
: '[Imorgon] LT',
12107 lastDay
: '[Igår] LT',
12108 nextWeek
: '[På] dddd LT',
12109 lastWeek
: '[I] dddd[s] LT',
12114 past
: 'för %s sedan',
12115 s
: 'några sekunder',
12127 dayOfMonthOrdinalParse
: /\d{1,2}(e|a)/,
12128 ordinal : function (number
) {
12129 var b
= number
% 10,
12130 output
= (~~(number
% 100 / 10) === 1) ? 'e' :
12133 (b
=== 3) ? 'e' : 'e';
12134 return number
+ output
;
12137 dow
: 1, // Monday is the first day of the week.
12138 doy
: 4 // The week that contains Jan 4th is the first week of the year.
12142 //! moment.js locale configuration
12143 //! locale : Swahili [sw]
12144 //! author : Fahad Kassim : https://github.com/fadsel
12146 hooks
.defineLocale('sw', {
12147 months
: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
12148 monthsShort
: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
12149 weekdays
: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
12150 weekdaysShort
: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
12151 weekdaysMin
: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
12152 weekdaysParseExact
: true,
12157 LL
: 'D MMMM YYYY',
12158 LLL
: 'D MMMM YYYY HH:mm',
12159 LLLL
: 'dddd, D MMMM YYYY HH:mm'
12162 sameDay
: '[leo saa] LT',
12163 nextDay
: '[kesho saa] LT',
12164 nextWeek
: '[wiki ijayo] dddd [saat] LT',
12165 lastDay
: '[jana] LT',
12166 lastWeek
: '[wiki iliyopita] dddd [saat] LT',
12170 future
: '%s baadaye',
12185 dow
: 1, // Monday is the first day of the week.
12186 doy
: 7 // The week that contains Jan 1st is the first week of the year.
12190 //! moment.js locale configuration
12191 //! locale : Tamil [ta]
12192 //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
12194 var symbolMap
$12 = {
12206 var numberMap
$11 = {
12219 hooks
.defineLocale('ta', {
12220 months
: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
12221 monthsShort
: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
12222 weekdays
: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
12223 weekdaysShort
: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
12224 weekdaysMin
: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
12229 LL
: 'D MMMM YYYY',
12230 LLL
: 'D MMMM YYYY, HH:mm',
12231 LLLL
: 'dddd, D MMMM YYYY, HH:mm'
12234 sameDay
: '[இன்று] LT',
12235 nextDay
: '[நாளை] LT',
12236 nextWeek
: 'dddd, LT',
12237 lastDay
: '[நேற்று] LT',
12238 lastWeek
: '[கடந்த வாரம்] dddd, LT',
12244 s
: 'ஒரு சில விநாடிகள்',
12246 mm
: '%d நிமிடங்கள்',
12247 h
: 'ஒரு மணி நேரம்',
12248 hh
: '%d மணி நேரம்',
12252 MM
: '%d மாதங்கள்',
12256 dayOfMonthOrdinalParse
: /\d{1,2}வது/,
12257 ordinal : function (number
) {
12258 return number
+ 'வது';
12260 preparse: function (string
) {
12261 return string
.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match
) {
12262 return numberMap
$11[match
];
12265 postformat: function (string
) {
12266 return string
.replace(/\d/g, function (match
) {
12267 return symbolMap
$12[match
];
12270 // refer http://ta.wikipedia.org/s/1er1
12271 meridiemParse
: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
12272 meridiem : function (hour
, minute
, isLower
) {
12275 } else if (hour
< 6) {
12276 return ' வைகறை'; // வைகறை
12277 } else if (hour
< 10) {
12278 return ' காலை'; // காலை
12279 } else if (hour
< 14) {
12280 return ' நண்பகல்'; // நண்பகல்
12281 } else if (hour
< 18) {
12282 return ' எற்பாடு'; // எற்பாடு
12283 } else if (hour
< 22) {
12284 return ' மாலை'; // மாலை
12289 meridiemHour : function (hour
, meridiem
) {
12293 if (meridiem
=== 'யாமம்') {
12294 return hour
< 2 ? hour
: hour
+ 12;
12295 } else if (meridiem
=== 'வைகறை' || meridiem
=== 'காலை') {
12297 } else if (meridiem
=== 'நண்பகல்') {
12298 return hour
>= 10 ? hour
: hour
+ 12;
12304 dow
: 0, // Sunday is the first day of the week.
12305 doy
: 6 // The week that contains Jan 1st is the first week of the year.
12309 //! moment.js locale configuration
12310 //! locale : Telugu [te]
12311 //! author : Krishna Chaitanya Thota : https://github.com/kcthota
12313 hooks
.defineLocale('te', {
12314 months
: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
12315 monthsShort
: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
12316 monthsParseExact
: true,
12317 weekdays
: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
12318 weekdaysShort
: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
12319 weekdaysMin
: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
12324 LL
: 'D MMMM YYYY',
12325 LLL
: 'D MMMM YYYY, A h:mm',
12326 LLLL
: 'dddd, D MMMM YYYY, A h:mm'
12329 sameDay
: '[నేడు] LT',
12330 nextDay
: '[రేపు] LT',
12331 nextWeek
: 'dddd, LT',
12332 lastDay
: '[నిన్న] LT',
12333 lastWeek
: '[గత] dddd, LT',
12338 past
: '%s క్రితం',
12339 s
: 'కొన్ని క్షణాలు',
12341 mm
: '%d నిమిషాలు',
12349 yy
: '%d సంవత్సరాలు'
12351 dayOfMonthOrdinalParse
: /\d{1,2}వ/,
12353 meridiemParse
: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
12354 meridiemHour : function (hour
, meridiem
) {
12358 if (meridiem
=== 'రాత్రి') {
12359 return hour
< 4 ? hour
: hour
+ 12;
12360 } else if (meridiem
=== 'ఉదయం') {
12362 } else if (meridiem
=== 'మధ్యాహ్నం') {
12363 return hour
>= 10 ? hour
: hour
+ 12;
12364 } else if (meridiem
=== 'సాయంత్రం') {
12368 meridiem : function (hour
, minute
, isLower
) {
12371 } else if (hour
< 10) {
12373 } else if (hour
< 17) {
12374 return 'మధ్యాహ్నం';
12375 } else if (hour
< 20) {
12382 dow
: 0, // Sunday is the first day of the week.
12383 doy
: 6 // The week that contains Jan 1st is the first week of the year.
12387 //! moment.js locale configuration
12388 //! locale : Tetun Dili (East Timor) [tet]
12389 //! author : Joshua Brooks : https://github.com/joshbrooks
12390 //! author : Onorio De J. Afonso : https://github.com/marobo
12392 hooks
.defineLocale('tet', {
12393 months
: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),
12394 monthsShort
: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez'.split('_'),
12395 weekdays
: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu'.split('_'),
12396 weekdaysShort
: 'Dom_Seg_Ters_Kua_Kint_Sext_Sab'.split('_'),
12397 weekdaysMin
: 'Do_Seg_Te_Ku_Ki_Sex_Sa'.split('_'),
12402 LL
: 'D MMMM YYYY',
12403 LLL
: 'D MMMM YYYY HH:mm',
12404 LLLL
: 'dddd, D MMMM YYYY HH:mm'
12407 sameDay
: '[Ohin iha] LT',
12408 nextDay
: '[Aban iha] LT',
12409 nextWeek
: 'dddd [iha] LT',
12410 lastDay
: '[Horiseik iha] LT',
12411 lastWeek
: 'dddd [semana kotuk] [iha] LT',
12417 s
: 'minutu balun',
12429 dayOfMonthOrdinalParse
: /\d{1,2}(st|nd|rd|th)/,
12430 ordinal : function (number
) {
12431 var b
= number
% 10,
12432 output
= (~~(number
% 100 / 10) === 1) ? 'th' :
12435 (b
=== 3) ? 'rd' : 'th';
12436 return number
+ output
;
12439 dow
: 1, // Monday is the first day of the week.
12440 doy
: 4 // The week that contains Jan 4th is the first week of the year.
12444 //! moment.js locale configuration
12445 //! locale : Thai [th]
12446 //! author : Kridsada Thanabulpong : https://github.com/sirn
12448 hooks
.defineLocale('th', {
12449 months
: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
12450 monthsShort
: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
12451 monthsParseExact
: true,
12452 weekdays
: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
12453 weekdaysShort
: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
12454 weekdaysMin
: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
12455 weekdaysParseExact
: true,
12460 LL
: 'D MMMM YYYY',
12461 LLL
: 'D MMMM YYYY เวลา H:mm',
12462 LLLL
: 'วันddddที่ D MMMM YYYY เวลา H:mm'
12464 meridiemParse
: /ก่อนเที่ยง|หลังเที่ยง/,
12465 isPM: function (input
) {
12466 return input
=== 'หลังเที่ยง';
12468 meridiem : function (hour
, minute
, isLower
) {
12470 return 'ก่อนเที่ยง';
12472 return 'หลังเที่ยง';
12476 sameDay
: '[วันนี้ เวลา] LT',
12477 nextDay
: '[พรุ่งนี้ เวลา] LT',
12478 nextWeek
: 'dddd[หน้า เวลา] LT',
12479 lastDay
: '[เมื่อวานนี้ เวลา] LT',
12480 lastWeek
: '[วัน]dddd[ที่แล้ว เวลา] LT',
12485 past
: '%sที่แล้ว',
12486 s
: 'ไม่กี่วินาที',
12500 //! moment.js locale configuration
12501 //! locale : Tagalog (Philippines) [tl-ph]
12502 //! author : Dan Hagman : https://github.com/hagmandan
12504 hooks
.defineLocale('tl-ph', {
12505 months
: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
12506 monthsShort
: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
12507 weekdays
: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
12508 weekdaysShort
: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
12509 weekdaysMin
: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
12514 LL
: 'MMMM D, YYYY',
12515 LLL
: 'MMMM D, YYYY HH:mm',
12516 LLLL
: 'dddd, MMMM DD, YYYY HH:mm'
12519 sameDay
: 'LT [ngayong araw]',
12520 nextDay
: '[Bukas ng] LT',
12521 nextWeek
: 'LT [sa susunod na] dddd',
12522 lastDay
: 'LT [kahapon]',
12523 lastWeek
: 'LT [noong nakaraang] dddd',
12527 future
: 'sa loob ng %s',
12528 past
: '%s ang nakalipas',
12529 s
: 'ilang segundo',
12530 m
: 'isang minuto',
12541 dayOfMonthOrdinalParse
: /\d{1,2}/,
12542 ordinal : function (number
) {
12546 dow
: 1, // Monday is the first day of the week.
12547 doy
: 4 // The week that contains Jan 4th is the first week of the year.
12551 //! moment.js locale configuration
12552 //! locale : Klingon [tlh]
12553 //! author : Dominika Kruk : https://github.com/amaranthrose
12555 var numbersNouns
= 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
12557 function translateFuture(output
) {
12559 time
= (output
.indexOf('jaj') !== -1) ?
12560 time
.slice(0, -3) + 'leS' :
12561 (output
.indexOf('jar') !== -1) ?
12562 time
.slice(0, -3) + 'waQ' :
12563 (output
.indexOf('DIS') !== -1) ?
12564 time
.slice(0, -3) + 'nem' :
12569 function translatePast(output
) {
12571 time
= (output
.indexOf('jaj') !== -1) ?
12572 time
.slice(0, -3) + 'Hu’' :
12573 (output
.indexOf('jar') !== -1) ?
12574 time
.slice(0, -3) + 'wen' :
12575 (output
.indexOf('DIS') !== -1) ?
12576 time
.slice(0, -3) + 'ben' :
12581 function translate
$9(number
, withoutSuffix
, string
, isFuture
) {
12582 var numberNoun
= numberAsNoun(number
);
12585 return numberNoun
+ ' tup';
12587 return numberNoun
+ ' rep';
12589 return numberNoun
+ ' jaj';
12591 return numberNoun
+ ' jar';
12593 return numberNoun
+ ' DIS';
12597 function numberAsNoun(number
) {
12598 var hundred
= Math
.floor((number
% 1000) / 100),
12599 ten
= Math
.floor((number
% 100) / 10),
12603 word
+= numbersNouns
[hundred
] + 'vatlh';
12606 word
+= ((word
!== '') ? ' ' : '') + numbersNouns
[ten
] + 'maH';
12609 word
+= ((word
!== '') ? ' ' : '') + numbersNouns
[one
];
12611 return (word
=== '') ? 'pagh' : word
;
12614 hooks
.defineLocale('tlh', {
12615 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('_'),
12616 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('_'),
12617 monthsParseExact
: true,
12618 weekdays
: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
12619 weekdaysShort
: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
12620 weekdaysMin
: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
12625 LL
: 'D MMMM YYYY',
12626 LLL
: 'D MMMM YYYY HH:mm',
12627 LLLL
: 'dddd, D MMMM YYYY HH:mm'
12630 sameDay
: '[DaHjaj] LT',
12631 nextDay
: '[wa’leS] LT',
12633 lastDay
: '[wa’Hu’] LT',
12638 future
: translateFuture
,
12639 past
: translatePast
,
12652 dayOfMonthOrdinalParse
: /\d{1,2}\./,
12655 dow
: 1, // Monday is the first day of the week.
12656 doy
: 4 // The week that contains Jan 4th is the first week of the year.
12660 //! moment.js locale configuration
12661 //! locale : Turkish [tr]
12662 //! authors : Erhan Gundogan : https://github.com/erhangundogan,
12663 //! Burak Yiğit Kaya: https://github.com/BYK
12686 hooks
.defineLocale('tr', {
12687 months
: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
12688 monthsShort
: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
12689 weekdays
: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
12690 weekdaysShort
: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
12691 weekdaysMin
: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
12696 LL
: 'D MMMM YYYY',
12697 LLL
: 'D MMMM YYYY HH:mm',
12698 LLLL
: 'dddd, D MMMM YYYY HH:mm'
12701 sameDay
: '[bugün saat] LT',
12702 nextDay
: '[yarın saat] LT',
12703 nextWeek
: '[haftaya] dddd [saat] LT',
12704 lastDay
: '[dün] LT',
12705 lastWeek
: '[geçen hafta] dddd [saat] LT',
12709 future
: '%s sonra',
12711 s
: 'birkaç saniye',
12723 dayOfMonthOrdinalParse
: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,
12724 ordinal : function (number
) {
12725 if (number
=== 0) { // special case for zero
12726 return number
+ '\'ıncı';
12728 var a
= number
% 10,
12729 b
= number
% 100 - a
,
12730 c
= number
>= 100 ? 100 : null;
12731 return number
+ (suffixes
$3[a
] || suffixes
$3[b
] || suffixes
$3[c
]);
12734 dow
: 1, // Monday is the first day of the week.
12735 doy
: 7 // The week that contains Jan 1st is the first week of the year.
12739 //! moment.js locale configuration
12740 //! locale : Talossan [tzl]
12741 //! author : Robin van der Vliet : https://github.com/robin0van0der0v
12742 //! author : Iustì Canun
12744 // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
12745 // This is currently too difficult (maybe even impossible) to add.
12746 hooks
.defineLocale('tzl', {
12747 months
: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
12748 monthsShort
: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
12749 weekdays
: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
12750 weekdaysShort
: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
12751 weekdaysMin
: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
12756 LL
: 'D. MMMM [dallas] YYYY',
12757 LLL
: 'D. MMMM [dallas] YYYY HH.mm',
12758 LLLL
: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
12760 meridiemParse
: /d\'o|d\'a/i,
12761 isPM : function (input
) {
12762 return 'd\'o' === input
.toLowerCase();
12764 meridiem : function (hours
, minutes
, isLower
) {
12766 return isLower
? 'd\'o' : 'D\'O';
12768 return isLower
? 'd\'a' : 'D\'A';
12772 sameDay
: '[oxhi à] LT',
12773 nextDay
: '[demà à] LT',
12774 nextWeek
: 'dddd [à] LT',
12775 lastDay
: '[ieiri à] LT',
12776 lastWeek
: '[sür el] dddd [lasteu à] LT',
12780 future
: 'osprei %s',
12782 s
: processRelativeTime
$7,
12783 m
: processRelativeTime
$7,
12784 mm
: processRelativeTime
$7,
12785 h
: processRelativeTime
$7,
12786 hh
: processRelativeTime
$7,
12787 d
: processRelativeTime
$7,
12788 dd
: processRelativeTime
$7,
12789 M
: processRelativeTime
$7,
12790 MM
: processRelativeTime
$7,
12791 y
: processRelativeTime
$7,
12792 yy
: processRelativeTime
$7
12794 dayOfMonthOrdinalParse
: /\d{1,2}\./,
12797 dow
: 1, // Monday is the first day of the week.
12798 doy
: 4 // The week that contains Jan 4th is the first week of the year.
12802 function processRelativeTime
$7(number
, withoutSuffix
, key
, isFuture
) {
12804 's': ['viensas secunds', '\'iensas secunds'],
12805 'm': ['\'n míut', '\'iens míut'],
12806 'mm': [number
+ ' míuts', '' + number
+ ' míuts'],
12807 'h': ['\'n þora', '\'iensa þora'],
12808 'hh': [number
+ ' þoras', '' + number
+ ' þoras'],
12809 'd': ['\'n ziua', '\'iensa ziua'],
12810 'dd': [number
+ ' ziuas', '' + number
+ ' ziuas'],
12811 'M': ['\'n mes', '\'iens mes'],
12812 'MM': [number
+ ' mesen', '' + number
+ ' mesen'],
12813 'y': ['\'n ar', '\'iens ar'],
12814 'yy': [number
+ ' ars', '' + number
+ ' ars']
12816 return isFuture
? format
[key
][0] : (withoutSuffix
? format
[key
][0] : format
[key
][1]);
12819 //! moment.js locale configuration
12820 //! locale : Central Atlas Tamazight Latin [tzm-latn]
12821 //! author : Abdel Said : https://github.com/abdelsaid
12823 hooks
.defineLocale('tzm-latn', {
12824 months
: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
12825 monthsShort
: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
12826 weekdays
: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
12827 weekdaysShort
: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
12828 weekdaysMin
: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
12833 LL
: 'D MMMM YYYY',
12834 LLL
: 'D MMMM YYYY HH:mm',
12835 LLLL
: 'dddd D MMMM YYYY HH:mm'
12838 sameDay
: '[asdkh g] LT',
12839 nextDay
: '[aska g] LT',
12840 nextWeek
: 'dddd [g] LT',
12841 lastDay
: '[assant g] LT',
12842 lastWeek
: 'dddd [g] LT',
12846 future
: 'dadkh s yan %s',
12852 hh
: '%d tassaɛin',
12861 dow
: 6, // Saturday is the first day of the week.
12862 doy
: 12 // The week that contains Jan 1st is the first week of the year.
12866 //! moment.js locale configuration
12867 //! locale : Central Atlas Tamazight [tzm]
12868 //! author : Abdel Said : https://github.com/abdelsaid
12870 hooks
.defineLocale('tzm', {
12871 months
: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
12872 monthsShort
: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
12873 weekdays
: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
12874 weekdaysShort
: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
12875 weekdaysMin
: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
12880 LL
: 'D MMMM YYYY',
12881 LLL
: 'D MMMM YYYY HH:mm',
12882 LLLL
: 'dddd D MMMM YYYY HH:mm'
12885 sameDay
: '[ⴰⵙⴷⵅ ⴴ] LT',
12886 nextDay
: '[ⴰⵙⴽⴰ ⴴ] LT',
12887 nextWeek
: 'dddd [ⴴ] LT',
12888 lastDay
: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
12889 lastWeek
: 'dddd [ⴴ] LT',
12893 future
: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
12899 hh
: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
12908 dow
: 6, // Saturday is the first day of the week.
12909 doy
: 12 // The week that contains Jan 1st is the first week of the year.
12913 //! moment.js locale configuration
12914 //! locale : Ukrainian [uk]
12915 //! author : zemlanin : https://github.com/zemlanin
12916 //! Author : Menelion Elensúle : https://github.com/Oire
12918 function plural
$6(word
, num
) {
12919 var forms
= word
.split('_');
12920 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]);
12922 function relativeTimeWithPlural
$4(number
, withoutSuffix
, key
) {
12924 'mm': withoutSuffix
? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
12925 'hh': withoutSuffix
? 'година_години_годин' : 'годину_години_годин',
12926 'dd': 'день_дні_днів',
12927 'MM': 'місяць_місяці_місяців',
12928 'yy': 'рік_роки_років'
12931 return withoutSuffix
? 'хвилина' : 'хвилину';
12933 else if (key
=== 'h') {
12934 return withoutSuffix
? 'година' : 'годину';
12937 return number
+ ' ' + plural
$6(format
[key
], +number
);
12940 function weekdaysCaseReplace(m
, format
) {
12942 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
12943 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
12944 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
12948 return weekdays
['nominative'];
12951 var nounCase
= (/(\[[ВвУу]\]) ?dddd/).test(format
) ?
12953 ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format
) ?
12956 return weekdays
[nounCase
][m
.day()];
12958 function processHoursFunction(str
) {
12959 return function () {
12960 return str
+ 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
12964 hooks
.defineLocale('uk', {
12966 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
12967 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
12969 monthsShort
: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
12970 weekdays
: weekdaysCaseReplace
,
12971 weekdaysShort
: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
12972 weekdaysMin
: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
12977 LL
: 'D MMMM YYYY р.',
12978 LLL
: 'D MMMM YYYY р., HH:mm',
12979 LLLL
: 'dddd, D MMMM YYYY р., HH:mm'
12982 sameDay
: processHoursFunction('[Сьогодні '),
12983 nextDay
: processHoursFunction('[Завтра '),
12984 lastDay
: processHoursFunction('[Вчора '),
12985 nextWeek
: processHoursFunction('[У] dddd ['),
12986 lastWeek: function () {
12987 switch (this.day()) {
12992 return processHoursFunction('[Минулої] dddd [').call(this);
12996 return processHoursFunction('[Минулого] dddd [').call(this);
13004 s
: 'декілька секунд',
13005 m
: relativeTimeWithPlural
$4,
13006 mm
: relativeTimeWithPlural
$4,
13008 hh
: relativeTimeWithPlural
$4,
13010 dd
: relativeTimeWithPlural
$4,
13012 MM
: relativeTimeWithPlural
$4,
13014 yy
: relativeTimeWithPlural
$4
13016 // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
13017 meridiemParse
: /ночі|ранку|дня|вечора/,
13018 isPM: function (input
) {
13019 return /^(дня|вечора)$/.test(input
);
13021 meridiem : function (hour
, minute
, isLower
) {
13024 } else if (hour
< 12) {
13026 } else if (hour
< 17) {
13032 dayOfMonthOrdinalParse
: /\d{1,2}-(й|го)/,
13033 ordinal: function (number
, period
) {
13040 return number
+ '-й';
13042 return number
+ '-го';
13048 dow
: 1, // Monday is the first day of the week.
13049 doy
: 7 // The week that contains Jan 1st is the first week of the year.
13053 //! moment.js locale configuration
13054 //! locale : Urdu [ur]
13055 //! author : Sawood Alam : https://github.com/ibnesayeed
13056 //! author : Zack : https://github.com/ZackVision
13082 hooks
.defineLocale('ur', {
13084 monthsShort
: months
$8,
13086 weekdaysShort
: days
$2,
13087 weekdaysMin
: days
$2,
13092 LL
: 'D MMMM YYYY',
13093 LLL
: 'D MMMM YYYY HH:mm',
13094 LLLL
: 'dddd، D MMMM YYYY HH:mm'
13096 meridiemParse
: /صبح|شام/,
13097 isPM : function (input
) {
13098 return 'شام' === input
;
13100 meridiem : function (hour
, minute
, isLower
) {
13107 sameDay
: '[آج بوقت] LT',
13108 nextDay
: '[کل بوقت] LT',
13109 nextWeek
: 'dddd [بوقت] LT',
13110 lastDay
: '[گذشتہ روز بوقت] LT',
13111 lastWeek
: '[گذشتہ] dddd [بوقت] LT',
13129 preparse: function (string
) {
13130 return string
.replace(/،/g, ',');
13132 postformat: function (string
) {
13133 return string
.replace(/,/g
, '،');
13136 dow
: 1, // Monday is the first day of the week.
13137 doy
: 4 // The week that contains Jan 4th is the first week of the year.
13141 //! moment.js locale configuration
13142 //! locale : Uzbek Latin [uz-latn]
13143 //! author : Rasulbek Mirzayev : github.com/Rasulbeeek
13145 hooks
.defineLocale('uz-latn', {
13146 months
: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),
13147 monthsShort
: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
13148 weekdays
: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),
13149 weekdaysShort
: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
13150 weekdaysMin
: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
13155 LL
: 'D MMMM YYYY',
13156 LLL
: 'D MMMM YYYY HH:mm',
13157 LLLL
: 'D MMMM YYYY, dddd HH:mm'
13160 sameDay
: '[Bugun soat] LT [da]',
13161 nextDay
: '[Ertaga] LT [da]',
13162 nextWeek
: 'dddd [kuni soat] LT [da]',
13163 lastDay
: '[Kecha soat] LT [da]',
13164 lastWeek
: '[O\'tgan] dddd [kuni soat] LT [da]',
13168 future
: 'Yaqin %s ichida',
13169 past
: 'Bir necha %s oldin',
13183 dow
: 1, // Monday is the first day of the week.
13184 doy
: 7 // The week that contains Jan 1st is the first week of the year.
13188 //! moment.js locale configuration
13189 //! locale : Uzbek [uz]
13190 //! author : Sardor Muminov : https://github.com/muminoff
13192 hooks
.defineLocale('uz', {
13193 months
: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
13194 monthsShort
: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
13195 weekdays
: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
13196 weekdaysShort
: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
13197 weekdaysMin
: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
13202 LL
: 'D MMMM YYYY',
13203 LLL
: 'D MMMM YYYY HH:mm',
13204 LLLL
: 'D MMMM YYYY, dddd HH:mm'
13207 sameDay
: '[Бугун соат] LT [да]',
13208 nextDay
: '[Эртага] LT [да]',
13209 nextWeek
: 'dddd [куни соат] LT [да]',
13210 lastDay
: '[Кеча соат] LT [да]',
13211 lastWeek
: '[Утган] dddd [куни соат] LT [да]',
13215 future
: 'Якин %s ичида',
13216 past
: 'Бир неча %s олдин',
13230 dow
: 1, // Monday is the first day of the week.
13231 doy
: 7 // The week that contains Jan 4th is the first week of the year.
13235 //! moment.js locale configuration
13236 //! locale : Vietnamese [vi]
13237 //! author : Bang Nguyen : https://github.com/bangnk
13239 hooks
.defineLocale('vi', {
13240 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('_'),
13241 monthsShort
: 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
13242 monthsParseExact
: true,
13243 weekdays
: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
13244 weekdaysShort
: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
13245 weekdaysMin
: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
13246 weekdaysParseExact
: true,
13247 meridiemParse
: /sa|ch/i,
13248 isPM : function (input
) {
13249 return /^ch$/i.test(input
);
13251 meridiem : function (hours
, minutes
, isLower
) {
13253 return isLower
? 'sa' : 'SA';
13255 return isLower
? 'ch' : 'CH';
13262 LL
: 'D MMMM [năm] YYYY',
13263 LLL
: 'D MMMM [năm] YYYY HH:mm',
13264 LLLL
: 'dddd, D MMMM [năm] YYYY HH:mm',
13267 lll
: 'D MMM YYYY HH:mm',
13268 llll
: 'ddd, D MMM YYYY HH:mm'
13271 sameDay
: '[Hôm nay lúc] LT',
13272 nextDay
: '[Ngày mai lúc] LT',
13273 nextWeek
: 'dddd [tuần tới lúc] LT',
13274 lastDay
: '[Hôm qua lúc] LT',
13275 lastWeek
: 'dddd [tuần rồi lúc] LT',
13293 dayOfMonthOrdinalParse
: /\d{1,2}/,
13294 ordinal : function (number
) {
13298 dow
: 1, // Monday is the first day of the week.
13299 doy
: 4 // The week that contains Jan 4th is the first week of the year.
13303 //! moment.js locale configuration
13304 //! locale : Pseudo [x-pseudo]
13305 //! author : Andrew Hood : https://github.com/andrewhood125
13307 hooks
.defineLocale('x-pseudo', {
13308 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('_'),
13309 monthsShort
: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
13310 monthsParseExact
: true,
13311 weekdays
: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
13312 weekdaysShort
: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
13313 weekdaysMin
: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
13314 weekdaysParseExact
: true,
13318 LL
: 'D MMMM YYYY',
13319 LLL
: 'D MMMM YYYY HH:mm',
13320 LLLL
: 'dddd, D MMMM YYYY HH:mm'
13323 sameDay
: '[T~ódá~ý át] LT',
13324 nextDay
: '[T~ómó~rró~w át] LT',
13325 nextWeek
: 'dddd [át] LT',
13326 lastDay
: '[Ý~ést~érdá~ý át] LT',
13327 lastWeek
: '[L~ást] dddd [át] LT',
13333 s
: 'á ~féw ~sécó~ñds',
13335 mm
: '%d m~íñú~tés',
13341 MM
: '%d m~óñt~hs',
13345 dayOfMonthOrdinalParse
: /\d{1,2}(th|st|nd|rd)/,
13346 ordinal : function (number
) {
13347 var b
= number
% 10,
13348 output
= (~~(number
% 100 / 10) === 1) ? 'th' :
13351 (b
=== 3) ? 'rd' : 'th';
13352 return number
+ output
;
13355 dow
: 1, // Monday is the first day of the week.
13356 doy
: 4 // The week that contains Jan 4th is the first week of the year.
13360 //! moment.js locale configuration
13361 //! locale : Yoruba Nigeria [yo]
13362 //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
13364 hooks
.defineLocale('yo', {
13365 months
: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),
13366 monthsShort
: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
13367 weekdays
: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
13368 weekdaysShort
: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
13369 weekdaysMin
: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
13374 LL
: 'D MMMM YYYY',
13375 LLL
: 'D MMMM YYYY h:mm A',
13376 LLLL
: 'dddd, D MMMM YYYY h:mm A'
13379 sameDay
: '[Ònì ni] LT',
13380 nextDay
: '[Ọ̀la ni] LT',
13381 nextWeek
: 'dddd [Ọsẹ̀ tón\'bọ] [ni] LT',
13382 lastDay
: '[Àna ni] LT',
13383 lastWeek
: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
13389 s
: 'ìsẹjú aayá die',
13401 dayOfMonthOrdinalParse
: /ọjọ́\s\d{1,2}/,
13402 ordinal
: 'ọjọ́ %d',
13404 dow
: 1, // Monday is the first day of the week.
13405 doy
: 4 // The week that contains Jan 4th is the first week of the year.
13409 //! moment.js locale configuration
13410 //! locale : Chinese (China) [zh-cn]
13411 //! author : suupic : https://github.com/suupic
13412 //! author : Zeno Zeng : https://github.com/zenozeng
13414 hooks
.defineLocale('zh-cn', {
13415 months
: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
13416 monthsShort
: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
13417 weekdays
: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
13418 weekdaysShort
: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
13419 weekdaysMin
: '日_一_二_三_四_五_六'.split('_'),
13425 LLL
: 'YYYY年MMMD日Ah点mm分',
13426 LLLL
: 'YYYY年MMMD日ddddAh点mm分',
13429 lll
: 'YYYY年MMMD日 HH:mm',
13430 llll
: 'YYYY年MMMD日dddd HH:mm'
13432 meridiemParse
: /凌晨|早上|上午|中午|下午|晚上/,
13433 meridiemHour: function (hour
, meridiem
) {
13437 if (meridiem
=== '凌晨' || meridiem
=== '早上' ||
13438 meridiem
=== '上午') {
13440 } else if (meridiem
=== '下午' || meridiem
=== '晚上') {
13444 return hour
>= 11 ? hour
: hour
+ 12;
13447 meridiem : function (hour
, minute
, isLower
) {
13448 var hm
= hour
* 100 + minute
;
13451 } else if (hm
< 900) {
13453 } else if (hm
< 1130) {
13455 } else if (hm
< 1230) {
13457 } else if (hm
< 1800) {
13464 sameDay
: '[今天]LT',
13465 nextDay
: '[明天]LT',
13466 nextWeek
: '[下]ddddLT',
13467 lastDay
: '[昨天]LT',
13468 lastWeek
: '[上]ddddLT',
13471 dayOfMonthOrdinalParse
: /\d{1,2}(日|月|周)/,
13472 ordinal : function (number
, period
) {
13477 return number
+ '日';
13479 return number
+ '月';
13482 return number
+ '周';
13503 // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
13504 dow
: 1, // Monday is the first day of the week.
13505 doy
: 4 // The week that contains Jan 4th is the first week of the year.
13509 //! moment.js locale configuration
13510 //! locale : Chinese (Hong Kong) [zh-hk]
13511 //! author : Ben : https://github.com/ben-lin
13512 //! author : Chris Lam : https://github.com/hehachris
13513 //! author : Konstantin : https://github.com/skfd
13515 hooks
.defineLocale('zh-hk', {
13516 months
: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
13517 monthsShort
: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
13518 weekdays
: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
13519 weekdaysShort
: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
13520 weekdaysMin
: '日_一_二_三_四_五_六'.split('_'),
13526 LLL
: 'YYYY年MMMD日 HH:mm',
13527 LLLL
: 'YYYY年MMMD日dddd HH:mm',
13530 lll
: 'YYYY年MMMD日 HH:mm',
13531 llll
: 'YYYY年MMMD日dddd HH:mm'
13533 meridiemParse
: /凌晨|早上|上午|中午|下午|晚上/,
13534 meridiemHour : function (hour
, meridiem
) {
13538 if (meridiem
=== '凌晨' || meridiem
=== '早上' || meridiem
=== '上午') {
13540 } else if (meridiem
=== '中午') {
13541 return hour
>= 11 ? hour
: hour
+ 12;
13542 } else if (meridiem
=== '下午' || meridiem
=== '晚上') {
13546 meridiem : function (hour
, minute
, isLower
) {
13547 var hm
= hour
* 100 + minute
;
13550 } else if (hm
< 900) {
13552 } else if (hm
< 1130) {
13554 } else if (hm
< 1230) {
13556 } else if (hm
< 1800) {
13563 sameDay
: '[今天]LT',
13564 nextDay
: '[明天]LT',
13565 nextWeek
: '[下]ddddLT',
13566 lastDay
: '[昨天]LT',
13567 lastWeek
: '[上]ddddLT',
13570 dayOfMonthOrdinalParse
: /\d{1,2}(日|月|週)/,
13571 ordinal : function (number
, period
) {
13576 return number
+ '日';
13578 return number
+ '月';
13581 return number
+ '週';
13603 //! moment.js locale configuration
13604 //! locale : Chinese (Taiwan) [zh-tw]
13605 //! author : Ben : https://github.com/ben-lin
13606 //! author : Chris Lam : https://github.com/hehachris
13608 hooks
.defineLocale('zh-tw', {
13609 months
: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
13610 monthsShort
: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
13611 weekdays
: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
13612 weekdaysShort
: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
13613 weekdaysMin
: '日_一_二_三_四_五_六'.split('_'),
13619 LLL
: 'YYYY年MMMD日 HH:mm',
13620 LLLL
: 'YYYY年MMMD日dddd HH:mm',
13623 lll
: 'YYYY年MMMD日 HH:mm',
13624 llll
: 'YYYY年MMMD日dddd HH:mm'
13626 meridiemParse
: /凌晨|早上|上午|中午|下午|晚上/,
13627 meridiemHour : function (hour
, meridiem
) {
13631 if (meridiem
=== '凌晨' || meridiem
=== '早上' || meridiem
=== '上午') {
13633 } else if (meridiem
=== '中午') {
13634 return hour
>= 11 ? hour
: hour
+ 12;
13635 } else if (meridiem
=== '下午' || meridiem
=== '晚上') {
13639 meridiem : function (hour
, minute
, isLower
) {
13640 var hm
= hour
* 100 + minute
;
13643 } else if (hm
< 900) {
13645 } else if (hm
< 1130) {
13647 } else if (hm
< 1230) {
13649 } else if (hm
< 1800) {
13656 sameDay
: '[今天]LT',
13657 nextDay
: '[明天]LT',
13658 nextWeek
: '[下]ddddLT',
13659 lastDay
: '[昨天]LT',
13660 lastWeek
: '[上]ddddLT',
13663 dayOfMonthOrdinalParse
: /\d{1,2}(日|月|週)/,
13664 ordinal : function (number
, period
) {
13669 return number
+ '日';
13671 return number
+ '月';
13674 return number
+ '週';
13696 hooks
.locale('en');