APISonar


com.sina.util.dnscache.model.DomainModel.time

> com > sina > util > dnscache > model > DomainModel > time
com APIs sina APIs util APIs dnscache APIs model APIs DomainModel APIs time APIs

Example 1
private boolean isExpire(DomainModel domainModel, long difference) {
        long queryTime = Long.parseLong(domainModel.time) / 1000;
        long ttl = Long.parseLong(domainModel.ttl);
        long newTime = System.currentTimeMillis() / 1000;
        if ((newTime - queryTime) > (ttl + difference)) {
            return true;
        }
        return false;
    }