def validTime(time):
    if time is None:
        return False
    splitted = time.split(":")
    if len(splitted) != 2:
        return False

    if int(splitted[0]) < 0 or int(splitted[0]) > 23:
        return False
    if int(splitted[1]) < 0 or int(splitted[1]) > 59:
        return False
    return True

ea66eaf898547b7447cd5195548c0dea07631e34
<mask token>

def validTime(time):
    if time is None:
        return False
    splitted = time.split(':')
    if len(splitted) != 2:
        return False
    if int(splitted[0]) < 0 or int(splitted[0]) > 23:
        return False
    if int(splitted[1]) < 0 or int(splitted[1]) > 59:
        return False
    return True

def validTime(time):
    if time is None:
        return False
    splitted = time.split(":")
    if len(splitted) != 2:
        return False

    if int(splitted[0]) < 0 or int(splitted[0]) > 23:
        return False
    if int(splitted[1]) < 0 or int(splitted[1]) > 59:
        return False
    return True
