def convert_time(sec):
    """ Convert format of time from seconds to h min sec.

    :param sec: Number of seconds
    :type sec: int
    """
    hours = int(sec / 3600.0)
    minutes = int((sec - hours * 3600) / 60.0)
    seconds = sec - hours * 3600 - minutes * 60
    return hours, minutes, seconds
