RE:Convertir total minutos a formato HH:MM
Hola, te paso un script en powerbuilder que convierte el valor de milisegundos al formato que vos pides...
este script lo debes crear en una funcion...
/////////////////////////////////////////////////////////////////////////////////////////////////////////
// CONVERTIR MILISEGUNDOS A FORMATO HH:MM:SS
////////////////////////////////////////////////////////////////////////////////////////////////////////
integer ff,mm,hh,ss2,mm2
Long ss
string ls_hora
time at_hora
// CALCULA LA CANTIDAD DE SEGUNDOS QUE HAY EN aul_milisegundos
ss = LONG(aul_milisegundos/100)
//EL RESTO DE LA DIVISION ANTERIOR ES LA CANTIDAD DE MILISEGUNDOS DE at_hora
ff = MOD(aul_milisegundos,100)
// CALCULO LA CANTIDAD DE MINUTOS QUE HAY EN ss SEGUNDOS
mm = INT(ss/60)
// SI LA DIVISION ANTERIOR TIENE RESTO, ES RESTO SON LOS SEGUNDOS DE at_hora
ss2 = MOD(ss,60)
// CALCULO LA CANTIDAD DE HORAS QUE HAY EN mm MINUTOS
hh = INT(mm/60)
// SI LA DIVISION ANTERIOS TIENE RESTO, ESE RESTO SON LOS MINUTOS DE at_hora
mm2 = MOD (mm,60)
// La hora seria entonces:
ls_hora = string(hh) + ":" + string(mm2) + ":" + string(ss2)
at_hora = time(ls_hora)
return at_hora
Saludos, espero que te sirva.