function toModel(oDate) {
		return {
			__edmType : "Edm.Time",
			ms : ((oDate.getUTCHours() * 60 + oDate.getUTCMinutes()) * 60 + oDate.getUTCSeconds())
				* 1000 + oDate.getUTCMilliseconds()
		};
	}
function toModel(oDate) {
		return {
			__edmType : "Edm.Time",
			ms : ((oDate.getUTCHours() * 60 + oDate.getUTCMinutes()) * 60 + oDate.getUTCSeconds())
				* 1000 + oDate.getUTCMilliseconds()
		};
	}
function toModel ( oDate ) { return { __edmType : "Edm.Time" , ms : ( ( oDate . getUTCHours ( ) * 60 + oDate . getUTCMinutes ( ) ) * 60 + oDate . getUTCSeconds ( ) ) * 1000 + oDate . getUTCMilliseconds ( ) } ; }
Converts the given Date to a time object.
@param {Date} oDate
the date (day, month and year are ignored)
@returns {object}
a time object with __edmType and ms
Converts the given Date to a time object .
Converts a Date to a model.