@_git_check
def last_checked_for_updates(gitrepo):
    """
    Find out the last time plugins were checked for updates.

    :param string gitrepo: path to the initialized Git repository
    :returns: Unix timestamp the last time it was checked, ``0`` if this is
        the first time.
    """
    retval = 0

    config = get_jigconfig(gitrepo)

    try:
        timestamp = int(config.get('jig', 'last_checked_for_updates'))
        retval = datetime.utcfromtimestamp(timestamp)
    except (NoSectionError, NoOptionError, __HOLE__):
        pass

    return retval
dataset/ETHPy150Open robmadole/jig/src/jig/plugins/tools.py/last_checked_for_updates