Lines Matching refs:mom

426 function calendar (key, mom, now) {  argument
428 return isFunction(output) ? output.call(mom, now) : output;
810 function get (mom, unit) {
811 return mom.isValid() ?
812 mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
815 function set$1 (mom, unit, value) { argument
816 if (mom.isValid() && !isNaN(value)) {
817 … if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {
818mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month(…
821 mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
954 var i, ii, mom, llc = monthName.toLocaleLowerCase();
961 mom = createUTC([2000, i]);
962 this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();
963 this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
995 var i, mom, regex;
1012 mom = createUTC([2000, i]);
1014 … this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
1015 …this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i'…
1018 regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
1034 function setMonth (mom, value) { argument
1037 if (!mom.isValid()) {
1039 return mom;
1046 value = mom.localeData().monthsParse(value);
1049 return mom;
1054 dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
1055 mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
1056 return mom;
1119 i, mom;
1122 mom = createUTC([2000, i]);
1123 shortPieces.push(this.monthsShort(mom, ''));
1124 longPieces.push(this.months(mom, ''));
1125 mixedPieces.push(this.months(mom, ''));
1126 mixedPieces.push(this.monthsShort(mom, ''));
1203 function weekOfYear(mom, dow, doy) { argument
1204 var weekOffset = firstWeekOffset(mom.year(), dow, doy),
1205 week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
1209 resYear = mom.year() - 1;
1211 } else if (week > weeksInYear(mom.year(), dow, doy)) {
1212 resWeek = week - weeksInYear(mom.year(), dow, doy);
1213 resYear = mom.year() + 1;
1215 resYear = mom.year();
1261 function localeWeek (mom) { argument
1262 return weekOfYear(mom, this._week.dow, this._week.doy).week;
1398 var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
1405 mom = createUTC([2000, 1]).day(i);
1406 this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();
1407 this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();
1408 this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
1462 var i, mom, regex;
1478 mom = createUTC([2000, 1]).day(i);
1480 …this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\.?') + '$', 'i…
1481 …this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\.?') + '…
1482 …this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\.?') + '$', …
1485 …regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMi…
1608 i, mom, minp, shortp, longp;
1611 mom = createUTC([2000, 1]).day(i);
1612 minp = this.weekdaysMin(mom, '');
1613 shortp = this.weekdaysShort(mom, '');
1614 longp = this.weekdays(mom, '');
3131 function addSubtract (mom, duration, isAdding, updateOffset) { argument
3136 if (!mom.isValid()) {
3144 setMonth(mom, get(mom, 'Month') + months * isAdding);
3147 set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
3150 mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
3153 hooks.updateOffset(mom, days || months);