protected static function has_expired(string $period, int $comparisondate) : bool {
        $dt = new \DateTime();
        $dt->setTimestamp($comparisondate);
        $dt->add(new \DateInterval($period));

        return (time() >= $dt->getTimestamp());
    }
protected static function has_expired(string $period, int $comparisondate) : bool {
        $dt = new \DateTime();
        $dt->setTimestamp($comparisondate);
        $dt->add(new \DateInterval($period));

        return (time() >= $dt->getTimestamp());
    }
protected static function has_expired ( string $ period , int $ comparisondate ) : bool { $ dt = new \ DateTime ( ) ; $ dt -> setTimestamp ( $ comparisondate ) ; $ dt -> add ( new \ DateInterval ( $ period ) ) ; return ( time ( ) >= $ dt -> getTimestamp ( ) ) ; }
Check whether a date is beyond the specified period.

@param   string      $period The Expiry Period
@param   int         $comparisondate The date for comparison
@return  bool
Check whether a date is beyond the specified period .