Initializes and returns the expires time from the server-side
config JavaScript

@param cfg
The parsed config JavaScript as a properties map
@return the expires time
348346
protected int loadExpires(Scriptable cfg) {
		int expires = 0;
		Object oExpires = cfg.get(EXPIRES_CONFIGPARAM, cfg);
		if (oExpires != Scriptable.NOT_FOUND) {
			try {
				expires = Integer.parseInt(toString(oExpires));
			} catch (NumberFormatException ignore) {
				throw new IllegalArgumentException(EXPIRES_CONFIGPARAM+"="+oExpires); //$NON-NLS-1$
			}
		}
		return expires;
	}
1109745
function (doc) {
      try {
        doc = JSON.parse(doc)
        if (doc.expire && doc.time + doc.expire * 1000 < Date.now()) {
          return ERR.config.FA_CONFIG_EXPIRED
        } else {
          return doc
        }
      } catch (e) {
        return ERR.config.FA_PARSE_CONFIG
      }
    }
1173675
function (res, cfg) {
                var providerInstance = providerInstances[cfg.provider];
                providerInstance.load({
                    fn : this._retrieveMapInstance,
                    scope : this,
                    args : cfg
                });
            }
386987
public function getTimeFromConfig($config)
    {
        $now = $this->date;
        $period = $this->processConfig($config);

        $sub = $this->processPeriod($period);

        if (isset($sub)) {
            $period = $now->sub(1, $sub);
        }

        return $period->toString(\Zend_Date::ISO_8601);
    }
1371906
function StreamConsole(cfg) {
    cfg = cfg || {};
    this.color = cfg.color || true;
    this.timestamp = (typeof cfg.timestamp === 'undefined') ? 'HH:mm:ss ' : cfg.timestamp;
}
202359
public static boolean isVersionPre12(Configuration cfg) {
      String version = cfg.version().toString();
      return Objects.equals(version, "1.0") || Objects.equals(version, "1.1");
   }
450313
public StoredCredential setExpirationTimeMilliseconds(Long expirationTimeMilliseconds) {
    lock.lock();
    try {
      this.expirationTimeMilliseconds = expirationTimeMilliseconds;
    } finally {
      lock.unlock();
    }
    return this;
  }
587612
@GET
    @Produces({ MediaType.TEXT_PLAIN })
    public String getTime() {
        return String.valueOf(System.currentTimeMillis());
    }
299209
public Long expireAt(Object key, long unixTime) {
		Jedis jedis = getJedis();
		try {
			return jedis.expireAt(keyToBytes(key), unixTime);
		}
		finally {close(jedis);}
	}
749217
protected final long getWriteExpireTimeMS(boolean created) {
    try {
      Duration duration = created ? expiry.getExpiryForCreation() : expiry.getExpiryForUpdate();
      if (duration == null) {
        return Long.MIN_VALUE;
      } else if (duration.isZero()) {
        return 0L;
      } else if (duration.isEternal()) {
        return Long.MAX_VALUE;
      }
      return duration.getAdjustedTime(currentTimeMillis());
    } catch (Exception e) {
      logger.log(Level.WARNING, "Failed to get the policy's expiration time", e);
      return Long.MIN_VALUE;
    }
  }
548728
public Date cookieExpiration(String expectedCookieName) {
        Cookie cookie = cookie(expectedCookieName);
        if (cookie != null) {
            return cookie.getExpiry();
        }
        return null;
    }
328207
public com.google.protobuf.Duration getExpiration() {
    return expiration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : expiration_;
  }
853174
public static Properties format(Config config) {
        Properties properties = new Properties();
        writeConfig("", config, properties);
        return properties;
    }
92263
public Duration getDuration(String property, Duration defaultValue) {
    return getProperty(property, defaultValue, value -> {
      try {
        return Durations.of(value);
      } catch (NumberFormatException e) {
        throw new ConfigurationException("malformed property value: " + property + " must be a number");
      }
    });
  }
317732
public int getSessionTimeOut(DeployedModule webModuleConfig)
    {
        int timeout = 0;
        try
        {
            timeout = webModuleConfig.getWebAppConfig().getSessionTimeout();
        }
        catch (Exception e)
        {
            // do nothing
        }
        if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.FINE))
        {
            LoggingUtil.SESSION_LOGGER_CORE.logp(Level.FINE, methodClassName, "getSessionTimeOut", "" + timeout);
        }
        return timeout;
    }
103524
public String getPublicanCfg() {
        return !publicanCfgs.containsKey(DEFAULT_PUBLICAN_CFG_KEY) ? null : publicanCfgs.get(DEFAULT_PUBLICAN_CFG_KEY).getValueText();
    }
659037
public static final String getString(Properties cfg, String key, String defaultValue) {
      if (cfg == null) {
         return defaultValue;
      } else {
         String propValue = cfg.getProperty(key);
         return propValue == null ? defaultValue : propValue;
      }
   }