def validCertTime(cert):
    now = datetime.now()
    try:
        validAfter = datetime.strptime(cert.get_notBefore(), '%Y%m%d%H%M%SZ')
        validUntil = datetime.strptime(cert.get_notAfter(), '%Y%m%d%H%M%SZ')
        return validAfter < now < validUntil
    except ValueError:
        return False
Iterate over entities.
dataset/ETHPy150Open nskinkel/oppy/oppy/crypto/util.py/validCertTime--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/appengine-mapreduce/python/src/mapreduce/datastore_range_iterators.py/_MultiPropertyRangeModelIterator.__iter__