def sec2hms(seconds):
    """ Convert seconds to readable hour:minute:sec format 

        :param float seconds: Seconds

        :return str: The nicely formatted string
    """
    if seconds == float('inf'):
        return "Inf"

    m, s = divmod(seconds, 60)
    h, m = divmod(m, 60)
    return "%dh:%02dm:%02ds" % (h, m, s)