code: function setConstraints(oType, oConstraints) {
  		var vNullable,
  			iPrecision;
  
  		oType.oConstraints = undefined;
  		if (oConstraints) {
  			vNullable = oConstraints.nullable;
  			if (vNullable === false || vNullable === "false") {
  				oType.oConstraints = {nullable : false};
  			} else if (vNullable !== undefined && vNullable !== true && vNullable !== "true") {
  				Log.warning("Illegal nullable: " + vNullable, null, oType.getName());
  			}
  
  			if (oConstraints.isDateOnly === true) {
  				oType.oConstraints = oType.oConstraints || {};
  				oType.oConstraints.isDateOnly = true;
  			}
  
  			iPrecision = oConstraints.precision;
  			if (iPrecision !== undefined) {
  				if (iPrecision === Math.floor(iPrecision) && iPrecision >= 1 && iPrecision <= 12) {
  					oType.oConstraints = oType.oConstraints || {};
  					oType.oConstraints.precision = iPrecision;
  				} else if (iPrecision !== 0) {
  					Log.warning("Illegal precision: " + iPrecision, null, oType.getName());
  				} // else: 0 is the default!
  			}
  		}
  		oType._handleLocalizationChange();
  	}
docs: /*
  Sets the constraints.
  
  @param {sap.ui.model.odata.type.DateTimeBase} oType
  The type instance
  @param {object} [oConstraints]
  Constraints, see {@link #constructor}