def check_time(stat, current, deadline):
    """ Check if the submit time of the assignment (last commit time) is before
        the deadline
    """
    if not deadline or current <= deadline:
        return True
    stat['late'] += 1
    return False
