src/Koldy/Config.php
public function isOlderThen(int $numberOfSeconds): bool
    {
        if ($this->loadedAt == null) {
            throw new ConfigException('Can not know how old is config when config is not set nor loaded yet; Please load config first for config name=' . $this->name);
        }

        return time() - $numberOfSeconds > $this->loadedAt;
    }
public function isOlderThen(int $numberOfSeconds): bool
    {
        if ($this->loadedAt == null) {
            throw new ConfigException('Can not know how old is config when config is not set nor loaded yet; Please load config first for config name=' . $this->name);
        }

        return time() - $numberOfSeconds > $this->loadedAt;
    }
public function isOlderThen ( int $ numberOfSeconds ) : bool { if ( $ this -> loadedAt == null ) { throw new ConfigException ( 'Can not know how old is config when config is not set nor loaded yet; Please load config first for config name=' . $ this -> name ) ; } return time ( ) - $ numberOfSeconds > $ this -> loadedAt ; }
Returns true if loaded configuration is older then the seconds passed as first argument, `false` otherwise.
This is useful if your CLI script is running for the long time and there's possibility that config
was updated in meantime.

@param int $numberOfSeconds

@return bool
@throws ConfigException
Returns true if loaded configuration is older then the seconds passed as first argument false otherwise . This is useful if your CLI script is running for the long time and there s possibility that config was updated in meantime .