def parse_time(time_string):
    """
    Parses given time string to extract hour and minute.
    Eg: 11:34 -> 11,34
        11    -> 11,0
    :param time_string:
    :return: Tuple of hour and minute
    """
    if ":" in time_string:
        # Convert both to int from string
        hour, minute = tuple(map(int, time_string.split(":")))
    else:
        hour, minute = int(time_string), 0

    return hour, minute