src/sap.ui.core/src/sap/ui/model/odata/type/Time.js
function toDate(oTime) {
		if (!isTime(oTime)) {
			throw new FormatException("Illegal sap.ui.model.odata.type.Time value: "
				+ toString(oTime));
		}
		return new Date(oTime.ms);
	}
function toDate(oTime) {
		if (!isTime(oTime)) {
			throw new FormatException("Illegal sap.ui.model.odata.type.Time value: "
				+ toString(oTime));
		}
		return new Date(oTime.ms);
	}
function toDate ( oTime ) { if ( ! isTime ( oTime ) ) { throw new FormatException ( "Illegal sap.ui.model.odata.type.Time value: " + toString ( oTime ) ) ; } return new Date ( oTime . ms ) ; }
Converts the given time object to a Date.
@param {object} oTime
the <code>Time</code> object
@returns {Date}
a Date with hour, minute, second and milliseconds set according to the time object.
@throws FormatException if the time object's format does not match
Converts the given time object to a Date .