I have a project in django where I have the fields hour, minutes, seconds separately I need to concatenate them so that they remain in the format "% H:% M:% S"
direferencia=6243.0 #Este valor esta en segundos
hora=math.floor(diferencia/3600) #devuelve 1.0
minuto=math.floor((diferencia - (hora * 3600)) / 60) #devuelve 44.0
segundo=math.floor(diferencia - (hora * 3600 + minuto * 60))#devuelve 3.0