code: function(val, sendUpdatedEvt) {
        var seconds = (typeof val == "string" ? parseFloat(val,10) : val)*this.options.unit;
        var units = inputEx.TimeIntervalField.units;
        var selectedUnit,n;
        
        if(seconds < units.SECOND) {
           selectedUnit = units.SECOND;
           n=1;
        }
        else {
  			
  			if (seconds % units.YEAR === 0) {
  				selectedUnit = units.YEAR;
  			} else if (seconds % units.MONTH === 0) {
  				selectedUnit = units.MONTH;
  			} else if (seconds % units.DAY === 0) {
  				selectedUnit = units.DAY;
  			} else if (seconds % units.HOUR === 0) {
  				selectedUnit = units.HOUR;
  			} else if (seconds % units.MINUTE === 0) {
  				selectedUnit = units.MINUTE;
  			} else {
  				selectedUnit = units.SECOND;
  			}
  			n=Math.floor(seconds/selectedUnit);
  		}
  
        inputEx.TimeIntervalField.superclass.setValue.call(this, [n, selectedUnit], sendUpdatedEvt);
     }
docs: Set the value of both subfields
  @param {Number} val The time interval integer (with the given unit)
  @param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)