Lines Matching refs:hooks

15 function hooks () {  function
188 var momentProperties = hooks.momentProperties = [];
250 hooks.updateOffset(this);
295 if (hooks.suppressDeprecationWarnings === false &&
305 if (hooks.deprecationHandler != null) {
306 hooks.deprecationHandler(null, msg);
334 if (hooks.deprecationHandler != null) {
335 hooks.deprecationHandler(name, msg);
343 hooks.suppressDeprecationWarnings = false;
344 hooks.deprecationHandler = null;
765 array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
768 array[YEAR] = hooks.parseTwoDigitYear(input);
786 hooks.parseTwoDigitYear = function (input) {
802 hooks.updateOffset(this, keepTime);
1062 hooks.updateOffset(this, true);
2020 var nowValue = new Date(hooks.now());
2366 hooks.createFromInputFallback(config);
2369 hooks.createFromInputFallback = deprecate(
2380 hooks.ISO_8601 = function () {};
2383 hooks.RFC_2822 = function () {};
2388 if (config._f === hooks.ISO_8601) {
2392 if (config._f === hooks.RFC_2822) {
2588 config._d = new Date(hooks.now());
2604 hooks.createFromInputFallback(config);
2837 hooks.updateOffset(res, false);
2854 hooks.updateOffset = function () {};
2896 hooks.updateOffset(this, true);
3153 hooks.updateOffset(mom, days || months);
3175 format = hooks.calendarFormat(this, sod) || 'sameElse';
3296 hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
3297 hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
3349 inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
3576 week[token] = hooks.parseTwoDigitYear(input);
4088 hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);
4089 hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLoca…
4488 hooks.version = '2.20.1';
4492 hooks.fn = proto;
4493 hooks.min = min;
4494 hooks.max = max;
4495 hooks.now = now;
4496 hooks.utc = createUTC;
4497 hooks.unix = createUnix;
4498 hooks.months = listMonths;
4499 hooks.isDate = isDate;
4500 hooks.locale = getSetGlobalLocale;
4501 hooks.invalid = createInvalid;
4502 hooks.duration = createDuration;
4503 hooks.isMoment = isMoment;
4504 hooks.weekdays = listWeekdays;
4505 hooks.parseZone = createInZone;
4506 hooks.localeData = getLocale;
4507 hooks.isDuration = isDuration;
4508 hooks.monthsShort = listMonthsShort;
4509 hooks.weekdaysMin = listWeekdaysMin;
4510 hooks.defineLocale = defineLocale;
4511 hooks.updateLocale = updateLocale;
4512 hooks.locales = listLocales;
4513 hooks.weekdaysShort = listWeekdaysShort;
4514 hooks.normalizeUnits = normalizeUnits;
4515 hooks.relativeTimeRounding = getSetRelativeTimeRounding;
4516 hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
4517 hooks.calendarFormat = getCalendarFormat;
4518 hooks.prototype = proto;
4521 hooks.HTML5_FMT = {
4533 return hooks;