code: function makeMoment(config) {
          var input = config._i,
              format = config._f,
              res;
  
          config._locale = config._locale || moment.localeData(config._l);
  
          if (input === null || (format === undefined && input === '')) {
              return moment.invalid({nullInput: true});
          }
  
          if (typeof input === 'string') {
              config._i = input = config._locale.preparse(input);
          }
  
          if (moment.isMoment(input)) {
              return new Moment(input, true);
          } else if (format) {
              if (isArray(format)) {
                  makeDateFromStringAndArray(config);
              } else {
                  makeDateFromStringAndFormat(config);
              }
          } else {
              makeDateFromInput(config);
          }
  
          res = new Moment(config);
          if (res._nextDay) {
              // Adding is smart enough around DST
              res.add(1, 'd');
              res._nextDay = undefined;
          }
  
          return res;
      }
docs: **********************************
  Top Level Functions
  **********************************