def need_update_check():
    'Determines whether we need to check for updates.'
    mkdir_p(PIPENV_CACHE_DIR)
    p = os.sep.join((PIPENV_CACHE_DIR, '.pipenv_update_check'))
    if (not os.path.exists(p)):
        return True
    out_of_date_time = (time() - ((24 * 60) * 60))
    if (os.path.isfile(p) and (os.path.getmtime(p) <= out_of_date_time)):
        return True
    else:
        return False
Determines whether we need to check for updates.
def need_update_check():
    
    mkdir_p(PIPENV_CACHE_DIR)
    p = os.sep.join((PIPENV_CACHE_DIR, '.pipenv_update_check'))
    if (not os.path.exists(p)):
        return True
    out_of_date_time = (time() - ((24 * 60) * 60))
    if (os.path.isfile(p) and (os.path.getmtime(p) <= out_of_date_time)):
        return True
    else:
        return False