code: function (date) {
              this._setDefaultMinMaxTime();
              if (date) {
                  if (dp.isSame(date, this.d.opts.minDate)) {
                      this._setMinTimeFromDate(this.d.opts.minDate);
                  } else if (dp.isSame(date, this.d.opts.maxDate)) {
                      this._setMaxTimeFromDate(this.d.opts.maxDate);
                  }
              }
  
              this._validateHoursMinutes(date);
          }
docs: Sets minHours, minMinutes etc. from date. If date is not passed, than sets
  values from options
  @param [date] {object} - Date object, to get values from
  @private