MatthiasMullie\Scrapbook\Adapters\SQL::expire PHP Метод

expire() защищенный Метод

Transforms expiration times into TIMESTAMP (Y-m-d H:i:s) format, which DB will understand and be able to compare with other dates.
protected expire ( integer $expire ) : null | string
$expire integer
Результат null | string
    protected function expire($expire)
    {
        if ($expire === 0) {
            return;
        }
        // relative time in seconds, <30 days
        if ($expire < 30 * 24 * 60 * 60) {
            $expire += time();
        }
        return date('Y-m-d H:i:s', $expire);
    }