toObject(opts = {}) {
    if (!this.isValid) return {};

    const base = { ...this.c };

    if (opts.includeConfig) {
      base.outputCalendar = this.outputCalendar;
      base.numberingSystem = this.loc.numberingSystem;
      base.locale = this.loc.locale;
    }
    return base;
  }
Returns a JavaScript object with this DateTime's year, month, day, and so on.
@param opts - options for generating the object
@param {boolean} [opts.includeConfig=false] - include configuration attributes in the output
@example DateTime.now().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 }
@return {Object}