def get_12hr_time (ARG_hour24: int):
    """Converts time from a 24-hour format to a 12-hour format.

    Parameters
    ----------
    ARG_hour24 : int
        The hour of the day according to a 24-hour clock.

    Returns
    -------
    H12 : int
        The hour of the day according to a 12-hour clock.
    period : str
        Either "am" or "pm"
    """
    H24 = ARG_hour24
    if H24 < 12:
        period = "am"
        H12 = H24
    elif H24 == 12:
        period = "pm"
        H12 = H24
    else:
        period = "pm"
        H12 = H24 - 12
    return H12, period