get_Time_String_from_Float( float_Dezimal_Time: number ) : String {
//----< get_Date_String_from_Date() >----
//*convert a number 0,25 into a time-String 00:15
//*in hours 1,25 = 01:15
//*in hours 0,5 = 00:30
//< check >
if (float_Dezimal_Time==null) return ""; //if in debugger
//</ check >
//< convert float to time >
//*convert to Minutes
var float_Time:number =float_Dezimal_Time * 60;
//</ convert float to time >
//< get Hour-Minutes >
var hours = Math.floor(float_Time/60);
var minutes = float_Time % 60;
//</ Hour-Minutes >
//< format hh:nn >
var date_output = new Date(0);
date_output.setUTCMinutes(minutes);
date_output.setUTCHours(hours);
var timeString_hh_nn = date_output.toISOString();
timeString_hh_nn=timeString_hh_nn.substr(11, 5);
//</ format hh:nn >
return timeString_hh_nn;
//----</ get_Date_String_from_Date() >----
}
|