docs: function(date) {
        if (_.isDate(date)) {
          this._date = date.toSerialNumber();
        } else if (_.isNumber(date)) {
          this._date = date;
        } else {
          throw new CError('wrong date type').log();
        }
      }