returns 'true' if 'lastModified' is after 'ifModifiedSince' (and both values are valid)
184070
public static boolean isModifiedSince(long ifModifiedSince, Calendar lastModified) {
        return lastModified != null && isModifiedSince(ifModifiedSince, lastModified.getTimeInMillis());
    }
171530
public function isValid(\DateTime $lastCacheDate = null): bool
    {
        $publishedDateTime = $this->getLastUpdateDate();

        if ($publishedDateTime && $publishedDateTime < $lastCacheDate) {
            return true;
        }

        return null === $publishedDateTime && null !== $lastCacheDate;
    }
536315
protected function _isCacheValid()
    {
        if (null === $this->_etag) {
            // lmTime is copied to ETag, so this condition implies that the
            // server sent neither ETag nor Last-Modified, so the client can't
            // possibly has a valid cache.
            return false;
        }
        $isValid = ($this->resourceMatchedEtag() || $this->resourceNotModified());
        if ($isValid) {
            $this->_headers['_responseCode'] = 'HTTP/1.0 304 Not Modified';
        }

        return $isValid;
    }
1288158
public static void checkIfModifiedSince(final String method, final String ifModifiedSince,
            final Instant modified) {
        if (isGetOrHead(method)) {
            final Instant time = parseDate(ifModifiedSince);
            if (time != null && time.isAfter(modified.truncatedTo(SECONDS))) {
                throw new RedirectionException(notModified().build());
            }
        }
    }
1010912
public static void addLastModified(Result result, long lastModified) {
        result.with(HeaderNames.LAST_MODIFIED, DateUtil.formatForHttpHeader(lastModified));
    }
329756
private boolean hasChanged( int[] oldValue, int[] newValue ) {
        if( oldValue.length == newValue.length ) {
            for( int i = 0; i < newValue.length; i++ ) {
                if( oldValue[i] != newValue[i] ) {
                    return true;
                }
            }
            return false;
        }
        return true;
    }
670815
def is_obsolete(self):
        
        if self.cache_updated:
            now = timezone.now()
            delta = now - self.cache_updated
            if delta.seconds < self.cache_validity:
                return False
        return True
1081795
public boolean isModified()
  {
    for (int i = _dependencyList.size() - 1; i >= 0; i--) {
      Dependency dependency = _dependencyList.get(i);

      if (dependency.isModified()) {
        return true;
      }
    }

    return false;
  }
993644
public boolean isModified(boolean bNonKeyOnly)
    {
        int fieldCount = this.getFieldCount();  // BaseField Count
        for (int fieldSeq = DBConstants.MAIN_FIELD; fieldSeq < fieldCount+DBConstants.MAIN_FIELD; fieldSeq++)
        {
            BaseField field = this.getField(fieldSeq);
            if (field.isModified()) if (!field.isVirtual()) // If not public and has been modified...
            {
                boolean bSkip = false;
                if (bNonKeyOnly)
                {
                    KeyArea index = this.getKeyArea(-1);
                    for (int i = DBConstants.MAIN_KEY_FIELD; i < index.getKeyFields(); i++)
                    {
                        if (field == index.getField(i))
                        {
                            bSkip = true; // Skip this one
                            break;
                        }
                    }
                }
                if (!bSkip)
                    return true;            // A field has been changed
            }
        }
        return false;   // No Changes YET
    }
163406
@Override
	public long lastModified() {
		long lastmod = 0L;
		try {
			lastmod = getURI().toURL().openConnection().getLastModified();
		} catch (IOException ignore) {}
		return lastmod;
	}
600403
def isModified(self):
        
        # NOTE: only check content digest if locally cached content is set
        # (content already pulled or new content set); otherwise this
        # results in pulling content down to checksum it !
        return self.info_modified or \
            self._content and self._content_digest() != self.digest
477754
public void setModified(boolean isModified)
  {
    _isModified = isModified;

    if (_isModified)
      _checkExpiresTime = Long.MAX_VALUE / 2;
    else
      _checkExpiresTime = CurrentTime.currentTime() + _checkInterval;
    
    if (! isModified)
      _isModifiedLog = false;
  }
1325803
private String parseMaxAgeMplus(String value, long lastModified) {
        long currentTimeMillis = System.currentTimeMillis();
        return Long.toString(Long.parseLong(value) + (lastModified - currentTimeMillis) / 1000);
    }
1232654
public function isCacheValid() : bool
    {
        if ($this->fileName === null) {
            return true;
        }

        return $this->fileModificationTime === filemtime($this->fileName);
    }
706778
private static boolean isValidityRange(Date currentTime, Date thisUpdate, Date nextUpdate)
  {
    long tolerableValidity = calculateTolerableVadility(thisUpdate, nextUpdate);
    return thisUpdate.getTime() - MAX_CLOCK_SKEW_IN_MILLISECONDS <= currentTime.getTime() &&
           currentTime.getTime() <= nextUpdate.getTime() + tolerableValidity;
  }
507372
def was_modified_since_last_sync(self):
        
        info = self.get_sync_info()
        if not info:
            return None
        if self.size != info["s"]:
            return True
        if self.mtime > info["m"]:
            return True
        return False
1023028
def is_valid_pid_to_be_updated(did):
    """"""
    return (
        is_existing_object(did)
        and not is_local_replica(did)
        and not is_archived(did)
        and not is_obsoleted(did)
    )