def hours_time_string(hours):
 minutes = int(round((hours * 60)))
 return ('%02d:%02d' % divmod(minutes, 60))

def hours_time_string ( hours ) : minutes = int ( round ( ( hours * 60 ) ) ) return ( '%02d:%02d' % divmod ( minutes , 60 ) )
convert a number of hours into a string with format %h:%m .