def valid_time(time):
    """ 針對時間格式進行偵錯
    minute、second 介於 0 ~ 60；hour is positive
    return: boolean
    """
    if time.second < 0 or time.minute < 0 or time.hour < 0:
        return False
    if time.second >= 60 or time.minute >= 60:
        return False
    return True